Silverstripe install error
I just recently went through a painfulll silverstripe install and wanted to give some feedback. This error occurs on mo_rewrite test but is not caused by mod_rewrite, your siteground account should be set up for mod rewrite. The following link has simple code for testing mod_rewrite http://www.wallpaperama.com/forums/h...abled-t40.html
To fix the error on a standard install on siteground simply follow the instructions below. Hope this saves somebody some time.
***** silversripe httprespond installin Error on Siteground *******
- reason, silverstripe uses a HttpReference class that is already being called by php
- also causes mod_rewrite test to fail
1) Open your copy new of the silverstripe install files.
2) Go to "sapphire/core/control/HTTPResponse.php" and rename it to "sapphire/core/control/SSHTTPResponse.php "
3) Open the new SSHTTPResponse.php and edit the HTTPResponse class to read SSHTTPResponse. Look through the file and change any other references to HTTPResponse to SSHTTPResponse.
4) Open the following files and change all references to the HTTPResponse to SSHTTPResponse.:
Save and upload all the files to their respective directories and run the silverstripe install.
I,ve done what has been recommended but it still doesn't work.
I have checked your account and found some files, where there were still references to the HTTPResponse function:
You will need to modify these files also in order to make your SilverStripe application operational.
Thanks Centry01 for your hint.
Originally it did not worked for me - I was getting
"HttpRequest::__construct() expects at most 3 parameters, 5 given" error when istall finished.
Then after pulling out the remaining of my hair I've finally succeeded.
There were two issues:
1. With Silverstripe 3.2.1 here were more files referencing to HTTPResponse
2. HTTPRequest also needed to be changes to something else. I used the same scheme and renamed it to SSHTTPRequest.
Here is how.
On my Ubuntu machine I've unarchived the Silverstripe distribution and then run
for f in `rgrep -l HTTPResponse SilverStripe-v2.3.1` do; perl -pi -e 's/HTTPResponse/SSHTTPResponse/g' $f; done
for f in `rgrep -l HTTPResponse SilverStripe-v2.3.1` do; perl -pi -e 's/HTTPRequest/SSHTTPRequest/g' $f; done
(Sorry translating the above from zsh to bash, hope the semicolons are in the right places :-)
Then I renamed sapphire/core/control/HTTPResponse.php -> sapphire/core/control/SSHTTPResponse.php and sapphire/core/control/HTTPRequest.php -> sapphire/core/control/SSHTTPRequest.php
Created archive, apploaded it to the SiteGround, put
"AddHandler application/x-httpd-php52 .php .php5 .php4 .php3" to .htaccess and it worked!
PS. Just realised that I should've done "rgrep -l HTTPRequest SilverStripe-v2.3.1" in the second command, but so far so good.
By rockinrobots in forum Forum Applications
Last Post: 09-14-2009, 01:02 AM
By zfhtang in forum Other Software and Applications
Last Post: 07-02-2009, 10:03 PM
By djhall in forum Other Software and Applications
Last Post: 09-03-2008, 09:03 PM
By twoten in forum General Joomla Discussions
Last Post: 12-27-2007, 10:56 AM
By amorgad in forum General Joomla Discussions
Last Post: 08-20-2007, 09:12 AM
Copyright © 2012 SiteGround.com Inc