Announcement

#1 2022-02-26 22:40:06

pineyscripter
Member
2022-02-25
2

Problems with Bootstrap Darkroom theme

Uploaded the theme to the Themes Directory - Activated it and then set it to default - now I am getting all sorts of errors .... if I go back to Modus as the default all is fine ....

Warning: Undefined array key "COMMENT_COUNT" in /home/mnsite00/public_html/Gallery/_data/templates_c/1opfye2^c3c43e344750943047656f71c851e742c3384b9e_0.file.picture_info_comments.tpl.php on line 27

Warning: Attempt to read property "value" on null in /home/mnsite00/public_html/Gallery/_data/templates_c/1opfye2^c3c43e344750943047656f71c851e742c3384b9e_0.file.picture_info_comments.tpl.php on line 27

=======
These are from my php error logs:

[26-Feb-2022 21:23:41 UTC] PHP Warning:  Undefined array key "TN_TITLE" in /home/mnsite00/public_html/Gallery/_data/templates_c/1opfye2^448ab0541084371e8c3027e464e999e9b23ab374_0.file.picture.tpl.php on line 191
[26-Feb-2022 21:23:41 UTC] PHP Warning:  Undefined array key "COMMENT_COUNT" in /home/mnsite00/public_html/Gallery/_data/templates_c/1opfye2^c3c43e344750943047656f71c851e742c3384b9e_0.file.picture_info_comments.tpl.php on line 27
[26-Feb-2022 21:23:41 UTC] PHP Warning:  Attempt to read property "value" on null in /home/mnsite00/public_html/Gallery/_data/templates_c/1opfye2^c3c43e344750943047656f71c851e742c3384b9e_0.file.picture_info_comments.tpl.php on line 27

using php 8.0 and the php is configured to log errors not show them .... so a side question is why are the warnings being shown on the page output ????

Last edited by pineyscripter (2022-02-26 23:29:08)

Offline

 

#2 2022-02-27 00:09:48

erAck
Only trying to help
2015-09-06
2026

Re: Problems with Bootstrap Darkroom theme

Piwigo displays what is set for the show_php_errors config value (default E_ALL), you can set local config

Code:

$conf['show_php_errors'] = 0;

if you're logging PHP messages on server level anyway.
Or if not see [Forum, post 183126 by erAck in topic 31852] Menubar tags issue after 12.2.0 upgrade.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2023-02-18 10:46:33

fafa
Member
2021-03-13
10

Re: Problems with Bootstrap Darkroom theme

erAck thanks, a lot,

i had same identical problem and has been fixed adding
$conf['show_php_errors'] = 0 ;   in local config as you said

I have to report just that  warning appeared only with php.8.0, with php 7.4 did not

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact