[TYPO3] Parse error

Jani Istenič jani at zapstudio.net
Tue Dec 18 19:49:35 CET 2007


Hi...

today almost all of my Typo3 pages on same server keep giving me this 
error (I didn't touch anything to cause this):


Parse error: syntax error, unexpected T_STRING in 
/home/domain/public_html/index.php on line 49

The line is different on various installs.

I checked the line in question:

define('PATH_thisScript',str_replace('//','/', str_replace('\','/', 
(php_sapi_name()=='cgi'||php_sapi_name()=='isapi' 
||php_sapi_name()=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])? 
($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME']))));


If I try to log into the backend the error is:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in 
/home/domain/public_html/typo3_src/typo3/index.php on line 204


I tried a new TYPO3 install via Cpanel and It worked for a few hours.. 
then it broke!

I read some mails that suggested to delete the TEMP files in typo3conf.. 
but did nothing for me. Then I opened the 
temp_CACHED_ps561a_ext_localconf.php file.. and one of the <?php tags 
isn't closed. As if the file is somehow constructed improperly.

Does anybody have an idea what could be causing this.

Thank you

Jani Istenic
www.zapstudio.net









More information about the TYPO3-english mailing list