Announcement

#1 2021-12-10 15:35:42

maxima
Member
2021-11-26
24

AStat

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

 

#2 2021-12-10 19:05:26

erAck
Only trying to help
2015-09-06
2027

Re: AStat

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.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-12-11 16:45:13

erAck
Only trying to help
2015-09-06
2027

Re: AStat

Fwiw, I created a pull request https://github.com/Piwigo/AStat/pull/4


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact