17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2527 Views |
-
Parse error when install.php is opened...

9 February 2007 at 8:04am
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!
-
Re: Parse error when install.php is opened...

9 February 2007 at 12:31pm
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.
-
Re: Parse error when install.php is opened...

12 February 2007 at 11:20am
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
-
Re: Parse error when install.php is opened...

21 February 2007 at 5:12am
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 -
Re: Parse error when install.php is opened...

6 April 2007 at 2:29pm Last edited: 6 April 2007 2:30pm
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 -
Re: Parse error when install.php is opened...

6 April 2007 at 4:02pm
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.
-
Re: Parse error when install.php is opened...

6 April 2007 at 4:03pm
pabben: can you not put a seperate .htaccess file in the directory where you have SilverStripe installed?
-
Re: Parse error when install.php is opened...

7 April 2007 at 3:53am
New version worked sweet, thanks.
| 2527 Views | ||
|
Page:
1
|
Go to Top |



