SOLVED:Frontend Parse error

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
buzzlyhan

SOLVED:Frontend Parse error

Post 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
Last edited by buzzlyhan on Thu Sep 13, 2007 12:17 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Frontend Parse error

Post 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
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
buzzlyhan

Re: Frontend Parse error

Post 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..?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Frontend Parse error

Post 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
buzzlyhan

Re: Frontend Parse error

Post 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
buzzlyhan

Re: SOLVED:Frontend Parse error

Post 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
Locked

Return to “[locked] Installation, Setup and Upgrade”