- This topic has 6 replies, 2 voices, and was last updated 2 years, 8 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Home › Forums › BP Better Messages › null given bp-better-messages-websocket/inc/premium.php on line 819
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!
Hi there!
Will check that, but I think it not causing any issue besides warning entry in your PHP erros log.
Thanks!
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.
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!
Thank you!
Absolutely fantastic Plugin!
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!
ok great! Much appreciated!