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
Piwigo displays what is set for the show_php_errors config value (default E_ALL), you can set local config
$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.
Offline
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