Jump to:

4873 Posts in 7260 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » HTTPResponse conflict

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: 3450 Views
  • sijk
    Avatar
    Community Member
    1 Post

    HTTPResponse conflict Link to this post

    Hi all.
    I'm currently trying to install SS on my site (hosted by NearlyFreeSpeech.NET). All requirements on the install.php page are satisfied except for one - it gives me the error:

    Your version of PHP has defined some classes that conflict with SilverStripe's. The following classes are at fault: HTTPResponse

    I asked the host and they said they can't do anything about it from their end. Is there anything I can do, or do I have to give up?

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: HTTPResponse conflict Link to this post

    If you're comfortable editing the PHP source of of SilverStripe, you could try renaming the HTTPResponse class to something like SSHTTPResponse, and searching & replacing the rest of the code for references to HTTPResponse, and updating those too. You would also need to rename HTTPResponse.php to SSHTTPResponse.php.

    But if this is your first time using SilverStripe, this might wind up being more hassle than it's worth. You could also ask your host if they can remove the custom HTTP extension to PHP that's discussed here: http://nz.php.net/manual/en/book.http.php

    Otherwise you could change hosts.

    We're hoping to fix this issue in 2.4.0.

  • allansideas
    Avatar
    Community Member
    2 Posts

    Re: HTTPResponse conflict Link to this post

    Thanks,

    I used notepad++ and opened up all the files in sapphire\core and sapphire\core\control - then used the "find in all files" to replace all instances of HTTPResponse with SSHTTPResponse, I also renamed the HTTPResponse.php found in sapphire\core\control to SSHTTPResopnse.php and everything is now working fine.

    Cheers!

  • allansideas
    Avatar
    Community Member
    2 Posts

    Re: HTTPResponse conflict Link to this post

    This may be related to the mod_rewrite AllowOverride issue that some people seem to be having on install.

    2.3 didn't install for me and kept getting stuck on Friendly Urls not working. It turns out that i needed to replace all instances of HTTPResponse and HTTPRequest in the code with SSHTTPResponse, and HTTPRequest (can do with notepad++ automatically) then rename the files in core\control to (SSHTTPResponse.php, and HTTPRequest.php) and it installed nice and clean.

    Al

  • rino
    Avatar
    Community Member
    12 Posts

    Re: HTTPResponse conflict Link to this post

    i have this problem too, and i asked the host to switch off the PHP extension "http". If it works afterwards i will report here! I hope this will be fixed soon, and i wonder why this issue isn't a problem for more people around...

  • rino
    Avatar
    Community Member
    12 Posts

    Re: HTTPResponse conflict Link to this post

    3450 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.