After update to 11.3.0 I got the following:
Notice: Trying to access array offset on value of type null in /web/se/xxx/plugins/meta/main.inc.php on line 183 and others
Meta Revision 11.0.a
Piwigo 11.3.0
Operativ system: Linux
PHP: 7.4.3
inactivate meta and no error (as expected)
Offline
Hello
I've notified the author. While it should be fixed, that's not exactly an error : I recommand you to not display Notice messages if you are in a live production server and not debugging something.
in your piwigo local config add :
conf['show_php_errors'] = 'E_ALL & ~E_NOTICE | E_STRICT';
Offline
entering
conf['show_php_errors'] = 'E_ALL & ~E_NOTICE | E_STRICT';
gives
Fatal error: Cannot use temporary expression in write context in /web/se/xxx/plugins/LocalFilesEditor/include/functions.inc.php(45) : eval()'d code on line 5
entering
$conf['show_php_errors'] = 'E_ALL & ~E_NOTICE | E_STRICT'; works but Notice still remains
Last edited by diabilden (2021-03-08 13:51:08)
Offline
the dollar was lost during my copy/paste
$conf['show_php_errors'] = 'E_ALL & ~E_NOTICE | E_STRICT';
Offline
The single quotes around the constants are wrong, they lead to assigning a string to the config value instead of a numeric value. Oring E_STRICT onto the value is unnecessary, unless one uses dead PHP versions earlier than 5.4.0, it is included in E_ALL since then. For production sites this is sufficient
$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED & ~E_NOTICE;
which can also be expressed as
$conf['show_php_errors'] = E_ALL & ~(E_DEPRECATED | E_NOTICE);
See also https://www.php.net/manual/en/errorfunc.constants.php
Offline
erAck wrote:
The single quotes around the constants are wrong, they lead to assigning a string to the config value instead of a numeric value.
Code:
$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED & ~E_NOTICE;
+1 !
Offline
Thanks all for quick reply. Now it's working
Offline