Hello, all.
I just upgraded to 12.2.0 from 12.1.0. After the upgrade, the Tags section of my menubar now shows this (instead of just the tag names):
Tags
/var/www/vhost/htdocs/photos/_data/templates_c/ljbwkp^0f9f509ae7ee45c121da4f31ab96c2d52c15581b_0.file.menubar_tags.tpl.php on line 37
" href="index.php?/tags/1-tag1" title="display photos linked to this tag">Tag1 /var/www/vhost/htdocs/photos/_data/templates_c/ljbwkp^0f9f509ae7ee45c121da4f31ab96c2d52c15581b_0.file.menubar_tags.tpl.php on line 37
" href="index.php?/tags/5-tag2" title="display photos linked to this tag">Tag2
I'm not sure what happened. Seems like a typo in a template or something, but I don't see any changes to menubar_tags.tpl with this version, and I'm not really sure where else to look. I'm pretty darn certain I wasn't having that issue before the upgrade.
Here's my environment:
Piwigo 12.2.0 Check for upgrade
Operating system: Linux
PHP: 8.0.12 (Show info) [2022-01-31 11:53:49]
MySQL: 5.5.5-10.5.10-MariaDB [2022-01-31 11:53:49]
Graphics Library: ImageMagick 7.1.0-13
Cache size N/A never calculated Refresh
Activated plugin list 4
Admin Tools
Batch Downloader
Custom Download Link
Take A Tour of Your Piwigo
Any suggestions?
Last edited by nitro322 (2022-01-31 18:57:44)
Offline
Still haven't been able to resolve this. Had to set it aside for a bit, but coming back fresh I noticed that the message I posted below isn't the complete message. Should've noticed this sooner, but here's the full message in the error log:
PHP Warning: Undefined array key "level" in /var/www/localhost/htdocs/photos/_data/templates_c/ljbwkp^0f9f509ae7ee45c121da4f31ab96c2d52c15581b_0.file.menubar_tags.tpl.php on line 37
Undefined key is much clearer, but still having trouble backtracking through the code to figure out what may be missing. Any ideas on this?
Offline
This issue appears to be related to IPTC, specifically the $conf['use_iptc'] = true. I got tired of having a broken gallery so I blew the thing away and started over, and much to my chagrin and ran into the same problem on the new site. Stepping through the config options helped me identify the issue.
Maybe this is another bug PHP 8.x?
Offline
It is not a bug in PHP. It is a warning from PHP that some code should do something different to avoid the situation that is warned about.
To suppress the display of warning (and deprecate and notice) messages, either add this to your local config
$conf['show_php_errors'] = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING;
or, better, log messages to file, see [Forum, post 180778 by erAck in topic 31258] Error Message for a bit more extensive approach.
If you don't know how to create/edit the local config then use [extension by Piwigo Team] LocalFiles Editor.
Offline