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!
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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!
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.
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
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
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
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.
pabben: can you not put a seperate .htaccess file in the directory where you have SilverStripe installed?
New version worked sweet, thanks.