Notifications
Clear all

[Solved] WP error on php8

5 Posts
3 Users
0 Likes
762 Views
Posts: 10
Topic starter
(@mrchrs)
Active Member
Joined: 2 years 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?

Topic Tags
4 Replies
dimalifragis
Posts: 2563
(@dimalifragis)
Famed Member
Joined: 4 years ago

PHP 8.0.x or 8.1.x?

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

Posts: 10
Topic starter
(@mrchrs)
Active Member
Joined: 2 years ago

According to phpinfo:
PHP Version 8.0.23

Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

@mrchrs,

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

Posts: 10
Topic starter
(@mrchrs)
Active Member
Joined: 2 years ago

Noted, thank you Robert