Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

[Solved] Parse-Errors on fresh Installation


Reply


2 Posts   1302 Views

Avatar
sgrtho

Community Member, 2 Posts

19 March 2011 at 3:15am

Dear folks,

my SS-installation works completely fine on the development host. But as soon as I install it on the production host I get a parse error when accessing the root (completely fresh download, complete write access to web server, also tried it with the development tree):

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING in /home/ufo/public_html/sapphire/core/ManifestBuilder.php(246) : eval()'d code on line 1

Warning: $project isn't set in /home/ufo/public_html/sapphire/core/ManifestBuilder.php on line 269

Warning: SS_Report::register(): 'SideReport_EmptyPages' is not a subclass of SS_Report in /home/ufo/public_html/cms/code/Report.php on line 301

Warning: SS_Report::register(): 'SideReport_RecentlyEdited' is not a subclass of SS_Report in /home/ufo/public_html/cms/code/Report.php on line 301

Warning: SS_Report::register(): 'SideReport_ToDo' is not a subclass of SS_Report in /home/ufo/public_html/cms/code/Report.php on line 301

Fatal error: Class 'SS_Log' not found in /home/ufo/public_html/sapphire/dev/Debug.php on line 245

As far as I can tell, somehow in ManifestBuilder.php on line 245 the $parts variable remains empty, although everything is fine with the _config.php file in the mysite folder.

In addition if I directly go to install.php I get the regular installation dialog with

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING in /home/ufo/public_html/install.php(137) : eval()'d code on line 1


showing in the background - no further errors or missing requirements. Same problem, I guess. Stuff like $baseDir seems to be just fine. Several tips I got from this forum showed no effect at all.

Environment:

PHP 5.3.3-7 with Suhosin-Patch (cli) (built: Jan 5 2011 10:36:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd.
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

uname -a
Linux lamp3 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux

cat /etc/debian_version
6.0

Thanks in advance - Tom

Avatar
sgrtho

Community Member, 2 Posts

22 March 2011 at 11:29am

This happens if: magic_quotes_gpc is off, but magic_quotes_runtime is on. Entry in .htaccess fixed it:

<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag magic_quotes_sybase off
</IfModule>