![]() |
Undefined Variable _POST in system/Log/Logger.php - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Undefined Variable _POST in system/Log/Logger.php (/showthread.php?tid=83485) |
Undefined Variable _POST in system/Log/Logger.php - junosapien - 09-29-2022 I recently upgraded from CI 3 to CI 4.2.1 (running on php 7.4). My site seems to be running well, but I see continuous errors in my log files about _POST being undefined in system/Log/Logger.php. The threshold is set to 4 in both the app/Config/Logger.php file and .env. Here is a sample from my log file: Code: [28-Sep-2022 07:16:49 America/Los_Angeles] PHP Fatal error: Uncaught ErrorException: Undefined variable: _POST in /var/www/system/Log/Logger.php:340 Anyone have any insights? RE: Undefined Variable _POST in system/Log/Logger.php - InsiteFX - 09-30-2022 Are you placing the $_POST array into the log file some place in your code? If so check your code, there are big changes to CodeIgniter 4 from 3. |