I just upgraded the PHP version on our Moodle server to PHP 7.1.12 and it's now bombarding me with PHP warning emails every five minutes. I'll get to the source of the error later, but right now, I just need it to shut up so I can think (plus I've got exam papers to mark ).
I've edited /etc/php.ini and set
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~E_CORE_WARNING
but I'm still getting the emails. I've looked in Moodle's config.php and read the Moodle Docs "Debugging" page, but I'm not seeing any setting that will let me reduce the logging level.
Can anyone please point me to the right log level setting?
For anyone interested, the error message is:
"PHP Warning: Narrowing occurred during type inference. Please file a bug report on bugs.php.net in /var/www/html/moodle/lib/setup.php on line 597"
but line 597 is just:
require_once($CFG->libdir .'/accesslib.php'); // Access control functions
Technical Info:
OS: CentOS Linux release 7.4.1708 (Core)
PHP version: PHP 7.1.12 (cli) (built: Nov 22 2017 08:25:12) ( NTS )
Moodle version: 3.4