Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

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

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

Install fails, due fault in php class HTTPResponse

Go to End

3 Posts   2143 Views


Community Member, 182 Posts

1 December 2009 at 7:42am

Hello everyone,

I had problems on my production sites and did this solution:

However i want to do new installations but i have troubles with the installation. I tried the same "workaround" as in the topic mentioned above.

Does any one know a different work around fro this issue?

When i am installing i get the following message at the PHP configuration part
Check that certain classes haven't been defined by PHP plugins
Your version of PHP has defined some classes that conflict with SilverStripe's. The following classes are at fault: HTTPResponse

Is this just a check in the installation page? Or is there another way to solve it.


Community Member, 182 Posts

1 December 2009 at 9:42am

I almost got it....

I did the find and replace again and checked the file names (HTTPRrequest and SS_HTTPResponse).

Now i get this message after installing (i commented the check on the httpresponse class out of the install.php page):

[Warning] HttpRequest::__construct() expects at most 3 parameters, 5 given
GET /majobouw/versie1/dev/build

Line 112 in /home/w1436526/domains/


103 			}
104 		}
106 		$req = new HTTPRequest(
107 			(isset($_SERVER['X-HTTP-Method-Override'])) ? $_SERVER['X-HTTP-Method-Override'] : $_SERVER['REQUEST_METHOD'],
108 			$url, 
109 			$_GET, 
110 			array_merge((array)$_POST, (array)$_FILES),
111 			@file_get_contents('php://input')
112 		);
114 		// @todo find better way to extract HTTP headers
115 		if(isset($_SERVER['HTTP_ACCEPT'])) $req->addHeader("Accept", $_SERVER['HTTP_ACCEPT']);
116 		if(isset($_SERVER['CONTENT_TYPE'])) $req->addHeader("Content-Type", $_SERVER['CONTENT_TYPE']);
117 		if(isset($_SERVER['HTTP_REFERER'])) $req->addHeader("Referer", $_SERVER['HTTP_REFERER']);

Line 112 of Director.php
Line 118 of main.php


Community Member, 182 Posts

1 December 2009 at 10:29am

Could this problem have any relation to the friendly urls that aren't working? Got that message while installing?

Could my directory structure cause any problems?

* assets (root ss)
* blog
* cms
* sapphire
** project1
*** assets (project1 version2 ss)
*** blog
*** cms
*** sapphire
*** assets (project1 version2 ss)
*** blog
*** cms
*** sapphire