After install, problem with smarty compiler

Having trouble installing serendipity?
Post Reply
red-jocker
Posts: 3
Joined: Mon Nov 30, 2009 2:44 pm

After install, problem with smarty compiler

Post 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 :cry:
Someone can help me please?
What can i do or change ?

Thank you.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: After install, problem with smarty compiler

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
red-jocker
Posts: 3
Joined: Mon Nov 30, 2009 2:44 pm

Re: After install, problem with smarty compiler

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: After install, problem with smarty compiler

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
red-jocker
Posts: 3
Joined: Mon Nov 30, 2009 2:44 pm

Re: After install, problem with smarty compiler

Post 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 °__° ...
Post Reply