Loading...
 

Architecture / Installation


Fatal error: Uncaught --> Smarty Compiler

posts: 5 United Kingdom

TikiWiki version 18.1 (InnoDB)

Hi all,

I’m getting the following error when trying to access my site:

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "c2c14a05d51d4c1a22b0e94aed41a3daa84f6014" on line 1 "{if $page eq "Equities_Reference_Glossary_AE"" - Unexpected """, expected one of: "}"

posts: 2100

Hi,
you have an extra double quote (") in "Equities_Reference_Glossary_AE"".

posts: 5 United Kingdom

Hey, thank you for getting back to me.

That's correct, the string wasn't complete. I was in the middle of writing the custom HTML when I got distracted; when I returned to my desk, I had forgotten that I was doing this and closed the Look and Feel page... doing this appears to have written the incomplete custom HTML to the database.

I did find the entry in the wiki_preferences table and have since deleted it, but, deleting the incomplete HTML from the wiki_preferences table hasn't resolved the issue.

posts: 2100

Right, you need to clear the cached template file, try to go to tiki-admin_system.php?do=all at your site...

You can also delete the file manually if you find it in templates_c/ dir.

Or try the command line: php console.php cache:clear

See https://doc.tiki.org/console

posts: 5 United Kingdom

Hey Luciash,

Many thanks for offering some advice. I've tried (manually) clearing the templates cache and then restarting the XAMPP services but, unfortunately, I am still seeing the same message as before, i.e., this one:

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "c2c14a05d51d4c1a22b0e94aed41a3daa84f6014" on line 1 "{if $page eq "Equities_Reference_Glossary_AE"" - Unexpected """, expected one of: "}"


Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.