Jump to:

4951 Posts in 14058 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » [Solved] Parse-Errors on fresh Installation

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

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

Page: 1
Go to End
Author Topic: 1247 Views
  • sgrtho
    Avatar
    Community Member
    2 Posts

    [Solved] Parse-Errors on fresh Installation Link to this post

    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

  • sgrtho
    Avatar
    Community Member
    2 Posts

    Re: [Solved] Parse-Errors on fresh Installation Link to this post

    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>

    1247 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.