Piwigo icon indicating copy to clipboard operation
Piwigo copied to clipboard

PHP errors

Open stemy2 opened this issue 5 years ago • 1 comments

Hello,

There are many php error on all the pages of my app. Here are the ones i see:

Notice: Undefined index: IS_IN_CADDIE in /home/yunohost.app/piwigo/_data/templates_c/ljbwkp^ebbff9da673f8ef3c3450cd0fb00b7e7c3721b4f_0.file.public_controller.tpl.php on line 165

Notice: Undefined index: ld_forgot_url in /var/www/piwigo/plugins/Ldap_Login/main.inc.php on line 97

Deprecated: Non-static method Smarty_Internal_Debug::display_debug() should not be called statically in /var/www/piwigo/include/template.class.php on line 571

Fatal error: Uncaught Error: Using $this when not in object context in /var/www/piwigo/include/smarty/libs/sysplugins/smarty_internal_debug.php:200 Stack trace: #0 /var/www/piwigo/include/template.class.php(571): Smarty_Internal_Debug::display_debug(Object(Smarty)) #1 /var/www/piwigo/include/page_tail.php(94): Template->p() #2 /var/www/piwigo/index.php(358): include('/var/www/piwigo...') #3 {main} thrown in /var/www/piwigo/include/smarty/libs/sysplugins/smarty_internal_debug.php on line 200

Aside those messages, the app works pretty well, but it make the pages ugly.

stemy2 avatar Mar 06 '20 20:03 stemy2

Same here, 5 years and several upgrades later.

I.e. when I click on the button to show the exif data (which has been changed recently in an unfavourable way BTW), I get

Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /srv/atarifrosch-media/plugins/exiftool_keywords/main.inc.php on line 23

Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /srv/atarifrosch-media/plugins/exiftool_gps/main.inc.php on line 21

Warning: foreach() argument must be of type array|object, null given in /srv/atarifrosch-media/plugins/exiftool_gps/main.inc.php on line 23

printed into the head of the page.

It seems that deprecated code is used in several places.

Atari-Frosch avatar Nov 02 '25 13:11 Atari-Frosch