unknow array key in $_smarty_tpl->tpl_vars['...']->value['...'] #1447

Open
opened 2026-10-05 00:44:12 +02:00 by adam · 3 comments
Owner

Differents files of the _data folder, I don't know what files generate them. create on my navbar some php errors:
Piwigo : 12.2.0
php: 8.0
example :
Warning: Undefined array key "count_categories" in piwigo\_data\templates_c\jbliys^b6e599d81599c8c06e88fc7c914623696fa9e298_0.file.menubar_related_categories.tpl.php on line 56

It's the case for count_categories here, but also for "title" in the same file, or "level" in the tags file. for the moment, not finding where it come from, I desactivated php errors. (second solution, before I did "$_smarty_tpl->tpl_vars['...']->value['...']??'' " but I thought it's not a good idea to modified these files.

Differents files of the _data folder, I don't know what files generate them. create on my navbar some php errors: Piwigo : 12.2.0 php: 8.0 example : `Warning: Undefined array key "count_categories" in piwigo\_data\templates_c\jbliys^b6e599d81599c8c06e88fc7c914623696fa9e298_0.file.menubar_related_categories.tpl.php on line 56` It's the case for count_categories here, but also for "title" in the same file, or "level" in the tags file. for the moment, not finding where it come from, I desactivated php errors. (second solution, before I did "$_smarty_tpl->tpl_vars['...']->value['...']??'' " but I thought it's not a good idea to modified these files. <!-- github-sync-id:1213756182 -->
Author
Owner

From what I heard in the official forum.
This error is here because mysql version on my server is 5.6 and php version 8.0;

Two solutions :
go down with php 7.4 for example.
go up with mysql version 8.

Because of other sites using php 8 on this host, I can't go down php.
Because of my host who ask for more money for go up with Mysql 8, I will just hide my errors until I can change this.
Thanks for help of the forum. This message is here for help people having same problem.

From what I heard in the official forum. This error is here because mysql version on my server is 5.6 and php version 8.0; Two solutions : go down with php 7.4 for example. go up with mysql version 8. Because of other sites using php 8 on this host, I can't go down php. Because of my host who ask for more money for go up with Mysql 8, I will just hide my errors until I can change this. Thanks for help of the forum. This message is here for help people having same problem. <!-- github-comment-id:1117102428 -->
Author
Owner

@NolwennWM did you get the chance to test Piwigo 13.0.0RC4 ?

@NolwennWM did you get the chance to test Piwigo 13.0.0RC4 ? <!-- github-comment-id:1260825039 -->
Author
Owner

I am having the same issue also with the new 13.0.0 version.

I am having the same issue also with the new 13.0.0 version. <!-- github-comment-id:1277989842 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1447