Ajax Chat

Ajax chat does support PHP 7.4, but not 8.x? - Ajax Chat

Ajax chat does support PHP 7.4, but not 8.x?

by php-bb3-user » Wed Mar 30, 2022 9:13 am

After PHP upgrade to 8.x, in the browser at background some lines of code appear, like these below:

[phpBB Debug] PHP Warning: in file [ROOT]/ext/spaceace/ajaxchat/event/listener.php on line 467: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/spaceace/ajaxchat/event/listener.php on line 471: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/spaceace/ajaxchat/event/listener.php on line 475: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/spaceace/ajaxchat/event/listener.php on line 484: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/spaceace/ajaxchat/event/listener.php on line 818: Trying to access array offset on value of type bool

Where as ...

at line 467:
if ($this->get_status($row['user_lastpost']) === 'online')
at line 471:
else if ($this->get_status($row['user_lastpost']) === 'idle')
at line 475:
else if ($this->user->data['user_id'] === ANONYMOUS || $this->get_status($row['user_lastpost']) === 'offline')
at line 484:
if ($this->user->data['user_id'] === ANONYMOUS || $row['user_lastpost'] === null)
at line 818:
return (bool) $hidden['session_viewonline'];

Does it mean there's no support for PHP 8.x or is there anything else I can do to solve this?
Assumption causes many times lots of trouble.
php-bb3-user
Registered User
Posts: 73
Joined: Wed Mar 19, 2014 1:16 pm