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.

Archive /

Our old forums are still available as a read-only archive.

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

Fatal error: Call to undefined method HttpResponse::isFinished()


Reply


1445 Views

Avatar
grilldan

Community Member, 135 Posts

23 August 2008 at 8:33am

Edited: 23/08/2008 8:58pm

From the install.php page, it will start installing, then it will say that mod_rewrite isnt on. I modify the .htaccess code so it says:

### SILVERSTRIPE START ###
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###

(This code worked on other websites)

Then it takes me to another page where it sais:

"Forced continue, attempting to redirect to home/successfullyinstalled. "

Once I am redirected from this page, I get the error:

Fatal error: Call to undefined method HttpResponse::isFinished() in sapphire/core/control/Controller.php on line 130

-I have checked the .htaccess to make sure that it wasnt over written (again)
-I have tried a complete reinstall
-I have tried to find the solution on google, and on here.
-I am using the forums to find some help :)

Has anyone encountered this problem?

I am using the latest stable release "2.2.2".

I have seen the http://www.silverstripe.com/bugs/flat/109753?showPost=138309 thread, but I still cant get it to work.

--------------edit1

here is the code from sapphire/core/control/Controller.php

129 // If we had a redirection or something, halt processing.
130 if($this->response->isFinished()) {
131 $this->popCurrent();
132 return $this->response;
133 }

----------------edit2

I have been in contact with the hosting company, and they fixed the mod_rewrite issue, however the error is still there. I am trying to get them to fix the httpd.conf file for me, but since it is on a shared server with 400+ websites all using the same file, they haven't responded back to me on that.