A lot of PHP warnings
Hi,
first I'd like to apologize for asking so many questions last few days but it is also kind of a Feedback to UNA Team after we upgrade our UNA instance and also modules upgrade....
So please can someone help me out with this two php errors/warnings in apache2 error.log for una site:
1.
PHP Warning: Undefined array key "clicked" in /una/modules/boonex/notifications/classes/BxNtfsTemplate.php on line 275
and the line 275 in "BxNtfsTemplate.php" is:
'condition' => $bClickedIndicator && (int)$aEvent['clicked'] != 0,
2.
AH01071: Got error 'PHP message:
PHP Warning: Undefined array key "thumb_id" in /una/cache/bx_templ_en_artificer_0d8e7470938cae007667a647b5706cfc.php on line 31
PHP message: PHP Warning: Undefined array key "name_thumb" in /una/cache/bx_templ_en_artificer_0d8e7470938cae007667a647b5706cfc.php on line 39
PHP message: PHP Warning: Undefined array key "name_thumb" in /una/cache/bx_templ_en_artificer_0d8e7470938cae007667a647b5706cfc.php on line 40'
and lines 39 and 40 are:
// select first image as a thumb by default
if (! echo $a['content_id'];?> && 1 == $('input[name="name_thumb'];?>[]"]').length)
$('input[name="name_thumb'];?>[]"]').attr('checked', true);
Plese help me out to solve this problems....
PS: the truth is that after upgrade until today's complete restart of a server there was a lot of "red" thumbnails for the post without image it looks like this:
Mayki
-
-
·
LeonidS
- ·
Hello @Mayki !
It looks like smth hasn't been upgraded or contains the errors. BTW - which PHP version do you use?
You may try to use that solution https://una.io/cmts-view/15g2c8?sys=bx_forum&cmt_id=40144 to disable the warnings.
-
·
LeonidS
-
- · Mayki
- ·
Hello @Leonid S !
"smth"? Do you mean "something"?
Web server is using php8.1-fpm, I also tried with php8.0-fpm but the warrnings/errors are the same.
Also the Cron is running as php8.1-fpm.
I might use the solution to hide/dissable warnings but I would be happier if there were not so many warnings - they are teling us that something is not as it should be.....