On my PC with a WAMP server and php 5.3.9 everything works fine.
When I upload it to the server with php 5.2.1.7, all redirects stop working - when the → redirect (..) script is executed it stops working - it acts as if it were die;
instead of redirection, and there is nothing printing and redirection do not work.
These are the redirects I use:
$this->redirect( array('controller' => 'users', 'action' => 'login') ); $this->redirect( $this->referer() )
Both (virtually everything ...) stopped working after uploading to the server ...
------ edit
I managed to show E_ALL errors and, for example, if I write $omg->lol()
before the redirect, then the error is reported as
Note (8): Undefined variable: omg [APP / Controller / LanguagesController.php, line 31] Fatal error: call of lol () member function for non-object in ...
But still there is no error message to redirect ...
source share