Announcement

#1 2022-02-10 19:16:28

Faisal
Member
2022-02-10
2

Warnings over all after installation.

Hello,

I got several warnings and deprecated messages that appears on all pages when Piwigo installed for the first time, Here are some examples:

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /var/www/html/piwigo_pic/admin/include/functions.php on line 3380

Deprecated: Implicit conversion from float 1644515856.878498 to int loses precision in /var/www/html/piwigo_pic/include/Logger.class.php on line 367

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /var/www/html/piwigo_pic/include/template.class.php on line 1899

Deprecated: Function strftime() is deprecated in /var/www/html/piwigo_pic/include/smarty/libs/sysplugins/smarty_internal_runtime_codeframe.php on line 48

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/piwigo_pic/include/template.class.php on line 911

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/piwigo_pic/include/template.class.php on line 721

Warning: Undefined array key "pwg_tags_per_page" in /var/www/html/piwigo_pic/_data/templates_c/p6jhns^6665b606a6b83ec7b9e158f6af39b77a5d064a79_0.file.tags.tpl.php on line 250





I uploaded some pictures and it worked fine.

Environment

    Piwigo 12.2.0
    Operating system: Linux
    PHP: 8.1.2 (Show info) [2022-02-10 19:04:07]
    MySQL: 5.5.5-10.6.5-MariaDB-2 [2022-02-10 19:04:07]
    Graphics Library: External ImageMagick 6.9.11-60
    Cache size 4.34 MB


I tried several times to delete Piwigo and reinstall it again but nothing happen.

all help are appreciated......
Thanks

Offline

 

#2 2022-02-10 21:41:44

erAck
Only trying to help
2015-09-06
1417

Re: Warnings over all after installation.

You may get better results with PHP 8.0 or even PHP 7.4 (some functionality appears to be still not PHP 8 ready). However, you can suppress display of Deprecated and Warning (and Notice) messages by adding this

Code:

$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_WARNING;

to your local config. Use [extension by Piwigo Team] LocalFiles Editor if you don't know how.

The better approach would be to log all messages to file instead of displaying them, see [Forum, post 180778 by erAck in topic 31258] Error Message.


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

Offline

 

Board footer

Powered by FluxBB

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