4649 Posts in 1402 Topics by 1394 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1534 Views |
-
Install fails, due fault in php class HTTPResponse

1 December 2009 at 7:42am
Hello everyone,
I had problems on my production sites and did this solution: http://silverstripe.org/general-questions/show/270446#post270446
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: HTTPResponseIs this just a check in the installation page? Or is there another way to solve it.
-
Re: Install fails, due fault in php class HTTPResponse

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/buildLine 112 in /home/w1436526/domains/zeeppompje.nl/public_html/projects/majobouw/versie1/sapphire/core/control/Director.php
Source
103 }
104 }
105
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 );
113
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']);
118
TraceHttpRequest->__construct(GET,/dev/build,Array,Array,)
Line 112 of Director.php
Director::direct(/dev/build)
Line 118 of main.php -
Re: Install fails, due fault in php class HTTPResponse

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?
public_html
* assets (root ss)
* blog
* cms
* sapphire
projects
** project1
***version1
*** assets (project1 version2 ss)
*** blog
*** cms
*** sapphire
***version2
*** assets (project1 version2 ss)
*** blog
*** cms
*** sapphire
| 1534 Views | ||
|
Page:
1
|
Go to Top |

