Page 1 of 1
After install, problem with smarty compiler
Posted: Mon Nov 30, 2009 2:53 pm
by red-jocker
After the complete install, i've a page with this sentence :
Parse error: syntax error, unexpected T_VARIABLE in /home/[...]/bundled-libs/Smarty/libs/Smarty_Compiler.class.php on line 372
i go to this line :
$compiled_content="preg_replace("~(?<!')language\s*=\s*[\"\']?\s*php\s*[\"\']?~","
I don't know what to do
Someone can help me please?
What can i do or change ?
Thank you.
Re: After install, problem with smarty compiler
Posted: Mon Nov 30, 2009 3:18 pm
by garvinhicking
Hi!
Did you check if the file was properly uploaded or if it differs from the version coming with serendipity? Which s9y version did you install? Which PHP version is running on your server?
Regards,
Garvin
Re: After install, problem with smarty compiler
Posted: Mon Nov 30, 2009 4:33 pm
by red-jocker
php is ok for 4, 5, cgi, mysql etc... i already install a old version (1.3.1), it run perfectly.
But for the new pack 1.4.1... no work. and if i take a old file "smarty-compiler" (from 1.3.1), it works but no possibility to change the theme and this error become again.
Re: After install, problem with smarty compiler
Posted: Tue Dec 01, 2009 9:35 am
by garvinhicking
Hi!
What, do you mean when you take the old compiler file then it works, and suddenly it stops working? Doe the compiler file update itself, or what do you mean? That really sounds strange.
Which PHP version are you using exactly?
You can try to delete the *.tpl.php file inside the templates_c/ directory, those are the compiled smarty template files, this might at least fix the issue that it "stops working" when changing a theme?!
Regards,
Garvin
Re: After install, problem with smarty compiler
Posted: Tue Dec 08, 2009 6:08 pm
by red-jocker
well... i re-install all (with serendipity 1.4.1 not modified) and always same error. When i clic for view my new weblog : no function and i see this error.
and the file "template-c" has just one file "empty"
My php is 5.2.11
Edit
AAh! i erase my complete database Mysql (all the name and recreate one different) and it's work... i don't know why °__° ...