Closed shadowfax closed 12 years ago
Could it be your sessions aren't be persistent?
Verstuurd vanaf mijn iPhone
Op 5 okt. 2012 om 16:13 heeft shadowfax notifications@github.com het volgende geschreven:
This is weird, but ZfcUser is working on development machine but not on hosting.
Every thing seems fine but when I try to login it keeps redirecting me to the login page. When I try to register it always takes me back to the registration page. No errors are reported.
Placing some echoes in the code it seems it has something to do with "prg" (Whicj I don't know what it does...
The code that makes this error is:
$redirectUrl = $this->url()->fromRoute('zfcuser/register') . ($redirect ? '?redirect=' . $redirect : ''); $prg = $this->prg($redirectUrl, true);
if ($prg instanceof Response) { return $prg; } else if ($prg === false) { return array( 'registerForm' => $form, 'enableRegistration' => $this->getOptions()->getEnableRegistration(), 'redirect' => $redirect, ); }
on devolpment machine it will go past this... on the hosting server it never passes from this point.
— Reply to this email directly or view it on GitHub.
Could be... I've been checking the authentication and it seems to get through but login form appears once again.
But I really don't know why this is happening as the session configuration is almost identical on both servers. The only difference is the production server has:
session.bug_compat_42 Off Off session.bug_compat_warn Off Off
which I guess should not interefere with the session's persistency. I'm running mad on this one :(
EDIT: OK! Finally got response from my hosting to get the error log. It seems the hosting has misconfigured the session path as it has no write access.
This is weird, but ZfcUser is working on development machine but not on hosting.
Every thing seems fine but when I try to login it keeps redirecting me to the login page. When I try to register it always takes me back to the registration page. No errors are reported.
Placing some echoes in the code it seems it has something to do with "prg" (Whicj I don't know what it does...
The code that makes this error is:
$redirectUrl = $this->url()->fromRoute('zfcuser/register') . ($redirect ? '?redirect=' . $redirect : ''); $prg = $this->prg($redirectUrl, true);
on devolpment machine it will go past this... on the hosting server it never passes from this point.