Page 1 of 1

SOLVED:Frontend Parse error

Posted: Wed Sep 12, 2007 4:16 am
by buzzlyhan
Hi,all.
I installed CMS today for the first time.(thanks cool C.M.S.)
The install was OK, admin access too. but the site gives error below. :'(
Please help me, everyone.

Code: Select all

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /lib/smarty/Smarty_Compiler.class.php(270) : regexp code on line 2

Fatal error: Failed evaluating code: '{php' . str_repeat(" ", substr_count('{* Don''t remove this! Metadata is entered in Site Admin/Global settings. *}', " ")) .'}' in /lib/smarty/Smarty_Compiler.class.php on line 270

Re: Frontend Parse error

Posted: Wed Sep 12, 2007 4:21 am
by calguy1000
Looks like you installed some code in one of your pages or templates that relies on 'use_smarty_php_tags' being set to truue in the config.php

Re: Frontend Parse error

Posted: Wed Sep 12, 2007 5:02 am
by buzzlyhan
Thanks, calguy1000. So quick reply!

I had set the 'true' in the config.php line 80.
..but it was the same result.

Can I try any other methods..?

Re: Frontend Parse error

Posted: Wed Sep 12, 2007 4:05 pm
by Nullig
Looks like the syntax is wrong for your code. Did you use {php} code here.... {/php} ?

You'd be better off putting your code in a UDT and calling it that way, instead of using the {php} tags - it's more secure.

Nullig

Re: Frontend Parse error

Posted: Thu Sep 13, 2007 12:15 pm
by buzzlyhan
Thanks all.
I did not understand the reason, but was solved.

I did OFF of simply, php.ini file. Even if  it turns it ON again, it is OK.(same content)
anyway, here is my php.ini

Code: Select all

default_charset = UTF-8 
mbstring.language = neutral 
mbstring.internal_encoding = UTF-8
mbstring.encoding_translation = Off 
mbstring.http_input = auto 
mbstring.http_output = pass 
display_errors = On
register_globals = Off
magic_quotes_gpc = On
magic_quotes_runtime = Off
file_uploads = On
magic_quotes_sybase = On
post_max_size = 10M
upload_max_filesize = 10M
output_buffering = Off
memory_limit = 16M

Re: SOLVED:Frontend Parse error

Posted: Thu Sep 13, 2007 1:54 pm
by buzzlyhan
The result report.
magic_quotes_sybase = On was not good.
see:http://jp2.php.net/manual/en/ref.info.php#ini.magic-quotes-runtime