Hi @rossdotparker ,
When a parent login Oh No! error occurs due to FL Module . Here is error Log.
[09-Jul-2021 12:20:03 Asia/Karachi] Notice: Undefined variable: session in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:20:03 Asia/Karachi] Uncaught Exception: Error - Call to a member function get() on null in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:20:12 Asia/Karachi] Notice: Undefined variable: session in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:20:12 Asia/Karachi] Uncaught Exception: Error - Call to a member function get() on null in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:20:56 Asia/Karachi] Notice: Undefined variable: session in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:20:56 Asia/Karachi] Uncaught Exception: Error - Call to a member function get() on null in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:21:00 Asia/Karachi] Notice: Undefined variable: session in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:21:00 Asia/Karachi] Uncaught Exception: Error - Call to a member function get() on null in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:28:23 Asia/Karachi] Notice: Undefined variable: session in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:28:23 Asia/Karachi] Uncaught Exception: Error - Call to a member function get() on null in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:28:26 Asia/Karachi] Notice: Undefined variable: session in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
[09-Jul-2021 12:28:26 Asia/Karachi] Uncaught Exception: Error - Call to a member function get() on null in /home/wspv9nflegs1/public_html/cms.ghsmalkay.com/modules/Free Learning/hook_parentalDashboard_unitHistory.php on line 39
Hi Ghulam,
Please can you let me know which versions of the Gibbon Core and Free Learning module you are using?
Thanks,
Ross
I am using V22 of Gibbon and Latest version of Free Learning
The issue is on line 39, with a call to the object session $session. In the past this was $gibbon->session, but in v22 we changed it for brevity. However, we’ve tested this module, and it works fine for us.
If you look at line 22, you should see:
global $gibbon, $container, $page;
Can you please adjust this to the following to see if it solves the issue for you?
global $gibbon, $container, $page, $session;
Thanks,
Ross
Hi Ghulam,
That is great to hear! Despite not having been able to replicate this issue, it has been reported by one other school, and so we’ve released Free Learning v5.16.36, with this and one other fix included.
Cheers,
Ross
Whoops - this one’s on me! I’ve been working on refactoring the additional modules over the last few months to update the $session variables, and this one must have slipped through the cracks. A good reminder!