PHP Warning: foreach() argument must be of type array|object, null given bp-better-messages-websocket/inc/premium.php on line 819
I'm getting this on my server's errorlog. PHP is 8.0 Suggestions for a fix?
Thanks!
TTerry · · 6 replies · 0 views · 2 readers
PHP Warning: foreach() argument must be of type array|object, null given bp-better-messages-websocket/inc/premium.php on line 819
I'm getting this on my server's errorlog. PHP is 8.0 Suggestions for a fix?
Thanks!
0
Goal reached: it still takes signatures until it closes.
New since you last read
The solution
Goal reached: it still takes signatures until it closes.
The solution
Hi there!
Will check that, but I think it not causing any issue besides warning entry in your PHP erros log.
Thanks!
0
Goal reached: it still takes signatures until it closes.
The solution
That was quick! No it doesn't seem to be. Is it just a PHP version thing?
line 819 is the code for online users:
819: foreach( $online_tabs as $user_id => $online_tabs ){
820: $online_users[ $user_id ] = $user_id;
821: }
It is taking up a considerable portion of my log though.
0
Goal reached: it still takes signatures until it closes.
The solution
Hi there!
Its more related to your PHP configuration of your error level log.
Sometimes it can spam the log with no reason. But I will check if I can fix something there to avoid that warning.
Thanks!
0
Goal reached: it still takes signatures until it closes.
The solution
Thank you!
Absolutely fantastic Plugin!
0
Goal reached: it still takes signatures until it closes.
The solution
Thanks for your feedback!
I just wrapped that piece of code to additional check to avoid that PHP warning.
In next update it should be fixed. (not sure now which day exactly it will be released)
Thanks!
0
Goal reached: it still takes signatures until it closes.
The solution
ok great! Much appreciated!
0
Goal reached: it still takes signatures until it closes.
Log in to reply, and to hear of new replies in this topic.
Log in to replyNotifications