undefined array key #1721

Closed
opened 2026-10-05 00:54:05 +02:00 by adam · 9 comments
Owner

Goodmorning,i receive multiple errors on collection tab

Warning: Undefined array key "cat" in /opt/lampp/htdocs/xxx/_data/templates_c/xr1exc^0bb276d1f6c18ee93c79b1cfc4aa034f5a00551d_0.file.menubar_user_collections.tpl.php on line 51

Warning: Attempt to read property "value" on null in /opt/lampp/htdocs/xxx/_data/templates_c/xr1exc^0bb276d1f6c18ee93c79b1cfc4aa034f5a00551d_0.file.menubar_user_collections.tpl.php on line 51

Warning: Trying to access array offset on value of type null in /opt/lampp/htdocs/xxx/_data/templates_c/xr1exc^0bb276d1f6c18ee93c79b1cfc4aa034f5a00551d_0.file.menubar_user_collections.tpl.php on line 51

Goodmorning,i receive multiple errors on collection tab Warning: Undefined array key "cat" in /opt/lampp/htdocs/xxx/_data/templates_c/xr1exc^0bb276d1f6c18ee93c79b1cfc4aa034f5a00551d_0.file.menubar_user_collections.tpl.php on line 51 Warning: Attempt to read property "value" on null in /opt/lampp/htdocs/xxx/_data/templates_c/xr1exc^0bb276d1f6c18ee93c79b1cfc4aa034f5a00551d_0.file.menubar_user_collections.tpl.php on line 51 Warning: Trying to access array offset on value of type null in /opt/lampp/htdocs/xxx/_data/templates_c/xr1exc^0bb276d1f6c18ee93c79b1cfc4aa034f5a00551d_0.file.menubar_user_collections.tpl.php on line 51 <!-- github-sync-id:1875540672 -->
adam closed this issue 2026-10-05 00:54:05 +02:00
Author
Owner

any help will be appreciated

any help will be appreciated <!-- github-comment-id:1701045959 -->
Author
Owner

Hi
Normally it IS plugin "user collections" in function bug

Not bug piwigo

Wich PHP ? Please
Wich sql ? Please
I test with me

If it IS désactived, it s ok👍

Tks

Hi Normally it IS plugin "user collections" in function bug Not bug piwigo Wich PHP ? Please Wich sql ? Please I test with me If it IS désactived, it s ok👍 Tks <!-- github-comment-id:1701399037 -->
Author
Owner

Hi Normally it IS plugin "user collections" in function bug

Not bug piwigo

Wich PHP ? Please Wich sql ? Please I test with me

If it IS désactived, it s ok👍

Tks

seems to be a problem of bootstrap darkroom theme
i have changed the theme and it doesn't show any errors on the user collections

> Hi Normally it IS plugin "user collections" in function bug > > Not bug piwigo > > Wich PHP ? Please Wich sql ? Please I test with me > > If it IS désactived, it s ok👍 > > Tks seems to be a problem of bootstrap darkroom theme i have changed the theme and it doesn't show any errors on the user collections <!-- github-comment-id:1702242348 -->
Author
Owner

hello
this only happens when it's php 8+

hello this only happens when it's php 8+ <!-- github-comment-id:1703558239 -->
Author
Owner

hello this only happens when it's php 8+

yes i have seen.with php 7 i don't have problems

> hello this only happens when it's php 8+ yes i have seen.with php 7 i don't have problems <!-- github-comment-id:1705465031 -->
Author
Owner

I'm getting this same collection of error messages every few minutes in my log:

[18-Sep-2023 14:40:10 UTC] PHP Warning:  Undefined array key "comments" in /home/<redacted>/public_html/Gallery/_data/templates_c/10126lf^8c09fcdf8eb2392b599596b4f644739ac91fb09d_0.file.comment_list.tpl.php on line 28
[18-Sep-2023 14:40:10 UTC] PHP Warning:  Attempt to read property "value" on null in /home/<redacted>/public_html/Gallery/_data/templates_c/10126lf^8c09fcdf8eb2392b599596b4f644739ac91fb09d_0.file.comment_list.tpl.php on line 28
[18-Sep-2023 14:41:49 UTC] PHP Warning:  Undefined array key "comments" in /home/<redacted>/public_html/Gallery/_data/templates_c/ljbwkp^f2d5102dfbb31ef5e60ac8d498ec959b7a70ef70_0.file.comment_list.tpl.php on line 59
[18-Sep-2023 14:41:49 UTC] PHP Warning:  Attempt to read property "value" on null in /home/<redacted>/public_html/Gallery/_data/templates_c/ljbwkp^f2d5102dfbb31ef5e60ac8d498ec959b7a70ef70_0.file.comment_list.tpl.php on line 59

The "Active" themes I have are "Elegant" (with a ★ by it) and "Smart Pocket". Inactive themes are "Clear", "Dark", "Modus", and "Sylvia".

If I access a command line on my web host I'm told my PHP version is 7.4.33:

[<redacted>@<redacted> ~]$ php --version
PHP 7.4.33 (cli) (built: Jun  7 2023 15:55:43) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd.
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies

However I'm told in phpMyAdmin that my PHP version is 8.1.16:

    cpsrvd <redacted>
    Database client version: libmysql - mysqlnd 8.1.16
    PHP extension: mysqli Documentation curl Documentation mbstring Documentation
    PHP version: 8.1.16

Elsewhere on that page it says my server version is:

Server version: 10.5.22-MariaDB-log - MariaDB Server
I'm getting this same collection of error messages every few minutes in my log: ``` [18-Sep-2023 14:40:10 UTC] PHP Warning: Undefined array key "comments" in /home/<redacted>/public_html/Gallery/_data/templates_c/10126lf^8c09fcdf8eb2392b599596b4f644739ac91fb09d_0.file.comment_list.tpl.php on line 28 [18-Sep-2023 14:40:10 UTC] PHP Warning: Attempt to read property "value" on null in /home/<redacted>/public_html/Gallery/_data/templates_c/10126lf^8c09fcdf8eb2392b599596b4f644739ac91fb09d_0.file.comment_list.tpl.php on line 28 [18-Sep-2023 14:41:49 UTC] PHP Warning: Undefined array key "comments" in /home/<redacted>/public_html/Gallery/_data/templates_c/ljbwkp^f2d5102dfbb31ef5e60ac8d498ec959b7a70ef70_0.file.comment_list.tpl.php on line 59 [18-Sep-2023 14:41:49 UTC] PHP Warning: Attempt to read property "value" on null in /home/<redacted>/public_html/Gallery/_data/templates_c/ljbwkp^f2d5102dfbb31ef5e60ac8d498ec959b7a70ef70_0.file.comment_list.tpl.php on line 59 ``` The "Active" themes I have are "Elegant" (with a ★ by it) and "Smart Pocket". Inactive themes are "Clear", "Dark", "Modus", and "Sylvia". If I access a command line on my web host I'm told my PHP version is 7.4.33: ``` [<redacted>@<redacted> ~]$ php --version PHP 7.4.33 (cli) (built: Jun 7 2023 15:55:43) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd. with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies ``` However I'm told in `phpMyAdmin` that my PHP version is 8.1.16: ``` cpsrvd <redacted> Database client version: libmysql - mysqlnd 8.1.16 PHP extension: mysqli Documentation curl Documentation mbstring Documentation PHP version: 8.1.16 ``` Elsewhere on that page it says my server version is: ``` Server version: 10.5.22-MariaDB-log - MariaDB Server ``` <!-- github-comment-id:1723629457 -->
Author
Owner

What does a test of Piwigo 14 give? We've made many changes to be more compatible with PHP 8.x

What does a test of Piwigo 14 give? We've made many changes to be more compatible with PHP 8.x <!-- github-comment-id:1759324424 -->
Author
Owner

My Piwigo tells me I am currently running version 13.8.0, which it then says is the latest version. If there's a version 14 available, it's not obvious to me how to get it.

My Piwigo tells me I am currently running version 13.8.0, which it then says is the latest version. If there's a version 14 available, it's not obvious to me how to get it. <!-- github-comment-id:1760690257 -->
Author
Owner

@BarryTice You can get the latest version here: https://piwigo.org/forum/viewtopic.php?id=33105
Be informed, this release is currently in a beta stadium (v.3) - but as far as I can see, quite stable.

@BarryTice You can get the latest version here: https://piwigo.org/forum/viewtopic.php?id=33105 Be informed, this release is currently in a beta stadium (v.3) - but as far as I can see, quite stable. <!-- github-comment-id:1761191933 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1721