Loading...
 
Architecture / Installation

Architecture / Installation


Config Issue: Fatal Error - SmartyCompilerException

posts: 4

Hi,

I'm a novice at this and am in a complete fix. I was able to install and do initial configuration of my tikiwiki 9.2(?) site - quranlexicon.org without issues. However, trying to increase the default font-size, I seem to have locked myself out of the site.

There's a section (I think under Configuration), where the Admin can specify custom HTML or PHP etc. that will make changes to the entire site. I added the following code to the HTML Head section there (yes, I didn't really know what I was doing - sorry!!).

-BEGIN CODE-
body{font-size: .85em;}
-END CODE-

When I applied the changes I got the following error message (also accessible directly on www.quranlexicon.org). Now I'm entirely locked out of the site. I do have access to the tiki files through my hosting account - how can I manually reverse the changes I made? Please help!!!

-BEGIN ERROR-
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "9e8065aeffd650232626a5b93b7963b40ce0d9ae" on line 1 "body{font-size: .85em;}" - Unexpected ": ", expected one of: "}" , " " , ATTR' in /srv/disk1/1237324/www/quranlexicon.org/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:656 Stack trace: #0 /srv/disk1/1237324/www/quranlexicon.org/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(3139): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /srv/disk1/1237324/www/quranlexicon.org/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(3204): Smarty_Internal_Templateparser->yy_syntax_error(2, ': ') #2 /srv/disk1/1237324/www/quranlexicon.org/lib/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(2, ': ') #3 /srv/disk1/1237324/www/quranlexicon.org/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompil in /srv/disk1/1237324/www/quranlexicon.org/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 656
-END ERROR-

Thanks so much!

posts: 4

Me again. I made some progress but am still stuck.

I found instructions on
http://twbasics.tikiforsmarties.com/tiki-index.php?page=Top+Tips#I_added_Custom_Code_on_the_Look_and_Feel_page_and_now_I_get_a_Fatal_Smarty_error_and_I_only_see_a_blank_page.

Tried following these instructions - I got to the Tiki_preferences table, but then couldn't find the SITEMYCODE row. Instead I found the code I had entered in the feature_custom_html_head_content row. I edited this, removed the offending code (leaving the field empty), and saved.

However the error message upon accessing the website (quranlexicon.org) remains the same, and still mentions the original offending code (which I deleted) - body{font-size: .85em;}

Please help. Thanks!