Notifications
Clear all

[Solved] WP error on php8

5 Posts
3 Users
0 Likes
134 Views
mrchrs
Posts: 10
Topic starter
(@mrchrs)
Active Member
Joined: 4 months ago

We recently upgraded to php8 and yesterday there was a fatal error on the site, which according to WordPress was caused by wpForo:

An error of type E_ERROR was caused in line 1747 of the file /var/www/xxx.com/wp-content/plugins/wpforo/classes/Members.php. Error message: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /var/www/xxx.com/wp-content/plugins/wpforo/classes/Members.php:1747

The plugin is Version 2.0.5

Can you help identify what this might be?

wpForo Version
2.0.5
WordPress Version
6+
Topic Tags
4 Replies
dimalifragis
Posts: 1830
(@dimalifragis)
Noble Member
Joined: 3 years ago

PHP 8.0.x or 8.1.x?

If the second, wpForo 2 is not yet compatible with PHP 8.1.x

mrchrs
Posts: 10
Topic starter
(@mrchrs)
Active Member
Joined: 4 months ago

According to phpinfo:
PHP Version 8.0.23

Robert
Posts: 9912
Admin
(@robert)
Support Team
Joined: 7 years ago

@mrchrs,

This issue was fixed in v2.0.8, please update your wpForo and don't use outdated versions.

mrchrs
Posts: 10
Topic starter
(@mrchrs)
Active Member
Joined: 4 months ago

Noted, thank you Robert