Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Install fails, due fault in php class HTTPResponse

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

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

Page: 1
Go to End
Author Topic: 1792 Views
  • raamklaza
    Avatar
    Community Member
    182 Posts

    Install fails, due fault in php class HTTPResponse Link to this post

    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: HTTPResponse

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

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: Install fails, due fault in php class HTTPResponse Link to this post

    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/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
    Trace

    HttpRequest->__construct(GET,/dev/build,Array,Array,)
    Line 112 of Director.php
    Director::direct(/dev/build)
    Line 118 of main.php

  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: Install fails, due fault in php class HTTPResponse Link to this post

    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

    1792 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.