![]() |
Upgraded to 4.4.4, error in Session.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: Upgraded to 4.4.4, error in Session.php (/showthread.php?tid=91520) |
Upgraded to 4.4.4, error in Session.php - sunchaser - 08-24-2024 Hi, I just upgraded CI to v 4.4.4 and now i get this error: Code: CRITICAL - 2024-08-24 09:26:09 --> ErrorException: Undefined global variable $_SESSION any help please? RE: Upgraded to 4.4.4, error in Session.php - sunchaser - 08-24-2024 The error is caused by a controller I call from cli. I have read in the docs that session stops immediately when cli is used and inside the BaseController I check if exists session(‘character_id’). How can I solve this, can I check inside the base controller if a call is from cli? Ok I think I can use: if ($this->input->is_cli_request()) { RE: Upgraded to 4.4.4, error in Session.php - kenjis - 08-24-2024 See https://www.codeigniter.com/user_guide/general/common_functions.html#is_cli |