1
Soporte General SMF / AutoIndex 3.0 and PHP 7.4 - Deprecated 'each' function
« on: January 15, 2021 - 06:20 18:20 »
AutoIndex 3.0 and PHP 7.4 - Deprecated 'each' function
Datos importantes:
Url del foro: https://fjcc.com.au/forum_labs
Version de SMF: SMF 2.0.17
Theme del foro: SMF Default Theme - Curve
Descripcion del problema:
This mod uses the deprecated 'each()' function in ./Sources/AutoIndexHooks.php which causes the error 'The each() function is deprecated. This message will be suppressed on further calls' to be logged with PHP 7.4.
In ./Sources/AutoIndexHooks.php
Find:
Replace With:
Datos importantes:
Url del foro: https://fjcc.com.au/forum_labs
Version de SMF: SMF 2.0.17
Theme del foro: SMF Default Theme - Curve
Descripcion del problema:
This mod uses the deprecated 'each()' function in ./Sources/AutoIndexHooks.php which causes the error 'The each() function is deprecated. This message will be suppressed on further calls' to be logged with PHP 7.4.
In ./Sources/AutoIndexHooks.php
Find:
Code: [Select]
while((list($key, $val) = each($buttons)) && $key != $boton)
$find_me++;
Replace With:
Code: [Select]
while (($key = key($buttons) && $val = current($buttons)) && $key != $boton)
$find_me++;
$find_me--;