You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've a weird stupid issue on a production server but managed to reproduce on localhost also and it sounds like this:
app: http://localhost/myapp/public/index.php/ (don't have mod_rewrite enabled);
I've added login/logout widget on the first page.
In the same first page I've some images which have source served by a php script like:
img alt="" src="http://localhost/otherApp/script.php/?type=image&id=1234.gif"
(As you can see it's an otherApp which lies on the same server/domain as mine).
3.The script.php (which is not a class) from otherApp has a session_start() inside;
When I login the login works ok (with redirect or without redirect on localhost on production apache log a stupid error PHP Warning: Class __PHP_Incomplete_Class has no unserializer in otherApp/script.php on line 2(where the session_start(); is used);
5.On production server when I hit F5 (refresh page) after zfcUser tells me I'm logged in and display the correct user name from database I get surprissed that to see that after refresh I'm not logged in anymore.
6.On localhost it keeps me logged in after refresh page, which is ok, works as expected.
7.On both servers when I hit loggout button (with or without redirect) I get Catchable fatal error: Argument 1 passed to Zend\Stdlib\ArrayObject::exchangeArray() must be of the type array, null given, called in my_app_path\vendor\zendframework\zendframework\library\Zend\Stdlib\ArrayObject.php on line 399 and defined in my_app_path\vendor\zendframework\zendframework\library\Zend\Stdlib\ArrayObject.php on line 184.
After this the app is unusable on both servers in current session. For get it working again you have open a new session (restart browser).
If I remove session_start(); from the otherApp/script.php all works fine as expected on both servers. The problem is that is not my application and it's a third party application which is very hard to archive this remove from their side, more it's not my server it's customer's server so I must play as they sing.
Now to reproduce the error on localhost you must have widget on the same page with one image that is populated from some kind of this script.
Here is my test script that used to reproduce the strange behavior:
For more information I'm at your discretion. 10x and sorry for long message but It's a strange stupid situation and got me some days to figure out up to here and to successfully reproduce on localhost too.
The text was updated successfully, but these errors were encountered:
I've a weird stupid issue on a production server but managed to reproduce on localhost also and it sounds like this:
app: http://localhost/myapp/public/index.php/ (don't have mod_rewrite enabled);
img alt="" src="http://localhost/otherApp/script.php/?type=image&id=1234.gif"
(As you can see it's an otherApp which lies on the same server/domain as mine).
3.The script.php (which is not a class) from otherApp has a session_start() inside;
5.On production server when I hit F5 (refresh page) after zfcUser tells me I'm logged in and display the correct user name from database I get surprissed that to see that after refresh I'm not logged in anymore.
6.On localhost it keeps me logged in after refresh page, which is ok, works as expected.
7.On both servers when I hit loggout button (with or without redirect) I get Catchable fatal error: Argument 1 passed to Zend\Stdlib\ArrayObject::exchangeArray() must be of the type array, null given, called in my_app_path\vendor\zendframework\zendframework\library\Zend\Stdlib\ArrayObject.php on line 399 and defined in my_app_path\vendor\zendframework\zendframework\library\Zend\Stdlib\ArrayObject.php on line 184.
After this the app is unusable on both servers in current session. For get it working again you have open a new session (restart browser).
Here is my test script that used to reproduce the strange behavior:
and in layout.phtml file i have
zfcUserIdentity()): echo $this->zfcUserLoginWidget(); else: echo $this->zfcUserIdentity()->getDisplayname(); ?>a href="url('zfcuser/logout'); ?>"> Logout</a
For more information I'm at your discretion. 10x and sorry for long message but It's a strange stupid situation and got me some days to figure out up to here and to successfully reproduce on localhost too.
The text was updated successfully, but these errors were encountered: