winstonford Member
|
Posted: 4 Jul 2006 12:41:22
I have been having a problem where after editing a template, I get a blank white page in the browser. After triple checking ownership and permissions, I found this error in my apache logs:
PHP Fatal error: Smarty error: [in cat.tpl line 2]: syntax error: invalid attribute name: 'header.tpl\\' (Smarty_Compiler.class.php, line 1508) in /usr/local/www/.../smarty/Smarty.class.php on line 1084
The double backslashes led me to believe that this was some escape character problem. I turned off magic quotes locally by adding the line below to the .htaccess file:
php_flag magic_quotes_runtime off
This has fixed the problem and smarty is compiling the templates. However I read another thread that said to turn on magic_quotes to avoid a mysql error.. It may be that magic quotes should only be set to off while editing templates.. Does anyone know for sure whether magic_quotes needs to be on during normal use of skalinks?
I hope this helps some poor soul looking at blank white pages!
Great app,
W
|