mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #28995
[Bug 1495200] Re: White screen when session times out
>From what I have read the problem seems to be this:
The automatic $_SESSION serialization/unserialization occurs when you call session_start().
That means the order in which you include your files and call the session_start() is very important.
Eg
BAD:
session_start();
require_once('pieforms/pieform.php');
GOOD:
require_once('pieforms/pieform.php');
session_start();
One possible solution is to use the session_write_close(), then
session_start()
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1495200
Title:
White screen when session times out
Status in Mahara:
New
Bug description:
Issue with 15.10
If you are logged into mahara and leave the site open in a browser for
some time when you come back and try to navigate somewhere you can end
up with a white blank screen - on refresh of page all works fine.
The problem is this:
PHP Fatal error: auth_generate_login_form(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Pieform" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/robertl/htdocs/mahara-devel/mahara/htdocs/auth/lib.php on line 1945
Which deals with the line:
return get_login_form_js($SESSION->loginform->build());
In earlier Mahara you would instead be given (via js) a popup login
box.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1495200/+subscriptions
References