#1 2022-10-13 10:59:56

gueba
Mitglied
2022-01-08
19

Version 13 php8.x warnings if related categories in menue

After upgrading to version 13 and testing it with php versions 8 and 8.1, I noticed php-warnings, if 'related albums' are shown in the menue (and of course if related albums are present):

Code:

        Warning: Undefined array key "count_images" in /www/htdocs/xxxyyy/test/_data/templates_c/ljbwkp^d388b16d6dc2ed819fe18692899a1ca0cd5884f2_0.file.menubar_related_categories.tpl.php on line 51
       
         Warning: Undefined array key "count_categories" in /www/htdocs/xxxyyy/test/_data/templates_c/ljbwkp^d388b16d6dc2ed819fe18692899a1ca0cd5884f2_0.file.menubar_related_categories.tpl.php on line 56

The named file shows:

Code:

50      <?php }
51      if ($_smarty_tpl->tpl_vars['cat']->value['count_images'] > 0) {?>
52           <span class="badge" title="<?php echo l10n_dec('%d photo','%d 53     photos',$_smarty_tpl->tpl_vars['cat']->value['count_images']);?>
53      "><?php echo $_smarty_tpl->tpl_vars['cat']->value['count_images'];?>
54     </span>
55     <?php }
56     if ($_smarty_tpl->tpl_vars['cat']->value['count_categories'] > 0) {?>
57           <span class="badge badgeCategories" title="<?php echo l10n('sub-albums');?>
58     "><?php echo $_smarty_tpl->tpl_vars['cat']->value['count_categories'];?>
59     </span>

In php7.4 everything is fine.

Offline

#2 2022-10-13 16:21:50

Slim
Piwigo Team Moderators
2013-03-09
810

Re: Version 13 php8.x warnings if related categories in menue

Hello,

yes unfortunately there are still some problems from which I am also affected. We should wait a bit until it is cleaned up.

Otherwise please post in the English forum.

Slim

Offline

#3 2022-10-14 09:51:17

gueba
Mitglied
2022-01-08
19

Re: Version 13 php8.x warnings if related categories in menue

Slim schrieb:

Otherwise please post in the English forum.

Sorry, mein Fehler. Ich dachte, ich sei im englischen Forum. Schande über mich!
Mir ist auch klar, dass es seine Zeit braucht, alle Fehler auszumerzen. Wollte nur darauf hinweisen.

cu

Offline

Brett Fußzeile

Unterstützt von FluxBB

github twitter newsletter Spenden Piwigo.org © 2002-2024 · Kontakt