Hi
I installed https://piwigo.org/ext/extension_view.php?eid=172 and an error occurs:
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in C:\AppServ\www\avs\plugins\AStat\astat_aip.class.inc.php on line 1448
Can this be fixed and how.
Offline
That's not an error, that's a deprecated message (for each() since PHP 7.2.0), means the function will cease to exist in a later PHP version (here PHP 8.0.0). Means the AStat plugin will break then.
You can suppress the "Deprecated" messages by setting
$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED;
in your local config.
Or better do all logging to file, see [Forum, post 180778 by erAck in topic 31258] Error Message.
Offline
Fwiw, I created a pull request https://github.com/Piwigo/AStat/pull/4
Offline