Home › Forums › BP Better Messages › null given bp-better-messages-websocket/inc/premium.php on line 819
- This topic has 6 replies, 2 voices, and was last updated 1 year, 5 months ago by
Terry.
- AuthorPosts
- April 13, 2022 at 8:09 pm #12613
Terry
ParticipantPHP 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!
April 13, 2022 at 8:10 pm #12614Support
KeymasterHi there!
Will check that, but I think it not causing any issue besides warning entry in your PHP erros log.
Thanks!
April 13, 2022 at 8:13 pm #12615Terry
ParticipantThat 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.
-
This reply was modified 1 year, 5 months ago by
Terry.
April 13, 2022 at 8:17 pm #12617Support
KeymasterHi 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!
April 13, 2022 at 8:18 pm #12618Terry
ParticipantThank you!
Absolutely fantastic Plugin!
April 13, 2022 at 8:22 pm #12619Support
KeymasterThanks 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!
April 13, 2022 at 8:27 pm #12620Terry
Participantok great! Much appreciated!
-
This reply was modified 1 year, 5 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.