Jump to content


Issue information

  • #035701

  • Fixed

  • 2.3.0 Beta 1

  • 2.3.0 Beta 1

  • 2 - Fair


Issue Confirmations

  • Yes (0)No (0)
Photo

Currently Viewing Users (recache brings fatal error)

Posted by Axel Wers on 02 February 2012 - 07:02 PM

I created block plugin Currently Viewing Users. Without problems.
But when I try to recache it I get fatal error

Fatal error: Call to undefined method adminSessions::returnCurrentSession() in 
/root_path/admin/applications_addon/ips/ccs/sources/blocks/plugin/currently_viewing/plugin.php on line 147

changed status to: Fixed
changed fixed-in version to: 2.3.0 Beta 1

That type of block can't be recached from the ACP.  It relies on determining session information from the page currently being viewed (which would be the block management page if you are in the ACP, and the block is not designed to recognize ACP pages).

I've added a small protection to just return empty contents if you try to recache it from the ACP to prevent the fatal error.






0 user(s) are reading this issue

0 members, 0 guests, 0 anonymous users