Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Parse error when install.php is opened...

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2648 Views
  • TweeQer
    Avatar
    Community Member
    1 Post

    Parse error when install.php is opened... Link to this post

    When I try to run install.php I get this error:

    Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/www/public_html/web/install.php on line 536

    What should I do? Any help would be great!

    Thank you!

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Parse error when install.php is opened... Link to this post

    I wonder if you are using PHP4? What version are you using? Looking at install.php, you can probably take out the if { } and get passed that particular parse error, but I think there may be something wrong with your server config that will mean you won't get much further;

    535: // Populate initial content
    536: if(!DB::query("SELECT ID FROM SiteTree WHERE URLSegment = 'about-us'")->value()) {
    537: echo "<li>Populating initial content and administrative account</li>";
    538:    flush();
    539:
    540: $dbAdmin->populate();
    541: }

    Keep line 540 to populate the content but lose everything else.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Parse error when install.php is opened... Link to this post

    Chances are you're using PHP4, if you can, modify the .htaccess file on your host and add this line - provided that your host also has PHP5 alongside 4. I had the same problem.

    AddType application/x-httpd-php5 .php

  • pabben
    Avatar
    Community Member
    1 Post

    Re: Parse error when install.php is opened... Link to this post

    Hi, i have the same problem, but.....i have a Joomla installation runing in the same host, i can modify the .httpaccess file, but how can i make the change only for the directory where i'am triying to install silverStripe?
    Thanks

  • browserweb
    Avatar
    Community Member
    2 Posts

    Re: Parse error when install.php is opened... Link to this post

    I have the same issue and so I did upgrade to PHP5 - that didnt work. I followed the instructions and also took out the code suggested by Sigurd and entered the new db info I created as that was the next error... that didnt work...any suggestions?
    Cheers

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Parse error when install.php is opened... Link to this post

    Have you tried using the latest release candidate (rc5) as of this time?

    http://www.silverstripe.com/assets/rc/silverstripe-v2.0.1-rc5.tar.gz

    Please let us know if you're still getting the same problem with this version.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Parse error when install.php is opened... Link to this post

    pabben: can you not put a seperate .htaccess file in the directory where you have SilverStripe installed?

  • browserweb
    Avatar
    Community Member
    2 Posts

    Re: Parse error when install.php is opened... Link to this post

    New version worked sweet, thanks.

    2648 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.