After upgrading Ubuntu to 18.04 and PHP to 7.2 I get these errors/warnings.
Deprecated: Function create_function() is deprecated in /var/www/piwigo/include/functions.inc.php on line 2165
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/piwigo/include/template.class.php on line 293.
After upgrading Ubuntu to 18.04 and PHP to 7.2 I get these errors/warnings.
Deprecated: Function create_function() is deprecated in /var/www/piwigo/include/functions.inc.php on line 2165
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/piwigo/include/template.class.php on line 293.
<!-- github-sync-id:333005103 -->
Thanks for these fixings ameenullah
Sorry, but I have unluckily other errors which appear when I'm browsing into the app :
( ! ) Deprecated: Function create_function() is deprecated in /var/www/html/piwigo/admin/include/functions.php on line 678 after creating an album...
( ! ) Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_compilebase.php on line 78
when I follow the tuto-popup
( ! ) Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_compilebase.php on line 78
among others... :(
Thanks for these fixings ameenullah
Sorry, but I have unluckily other errors which appear when I'm browsing into the app :
( ! ) Deprecated: Function create_function() is deprecated in /var/www/html/piwigo/admin/include/functions.php on line 678 after creating an album...
( ! ) Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_compilebase.php on line 78
when I follow the tuto-popup
( ! ) Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_compilebase.php on line 78
among others... :(
<!-- github-comment-id:398535605 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
After upgrading Ubuntu to 18.04 and PHP to 7.2 I get these errors/warnings.
Deprecated: Function create_function() is deprecated in /var/www/piwigo/include/functions.inc.php on line 2165
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/piwigo/include/template.class.php on line 293.
Line 2165 in /var/www/piwigo/include/functions.inc.php
REPLACE
//$replace_chars = create_function('$m', 'return ord(strtolower($m[1]));');
WITH
$replace_chars = function($m) {
return ord(strtolower($m[1]));
};
Line 293 in /var/www/piwigo/include/template.class.php
REPLACE:
//while(list($handle, $filename) = each($filename_array))
WITH:
foreach ($filename_array as $handle=>$filename)
Thanks for these fixings ameenullah
Sorry, but I have unluckily other errors which appear when I'm browsing into the app :
( ! ) Deprecated: Function create_function() is deprecated in /var/www/html/piwigo/admin/include/functions.php on line 678 after creating an album...
( ! ) Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_compilebase.php on line 78
when I follow the tuto-popup
( ! ) Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/piwigo/include/smarty/libs/sysplugins/smarty_internal_compilebase.php on line 78
among others... :(
Bug fixed with Piwigo 2.9.4, compatible with PHP 7.2