Matomo 4.10.0 breaks WP/other plugin(s)?

Since update to 4.10.0 a few days ago, I get PHP Fatal error: Uncaught Error: Class 'WP_Network' not found in /.../ wp-includes/ms-network.php:34 on the wp CLI when Matomo and Real Media Library Lite are both activated. Disabling either of them restores WP CLI functionality.

The website works, and there are no errors in the php-fpm logs.

WP version 5.9.3.

[root@wpserver site1]# wp core version
5.9.3
[root@wpserver site1]# wp plugin list
+-------------------------+----------+-----------+---------+
| name                    | status   | update    | version |
+-------------------------+----------+-----------+---------+
| akismet                 | inactive | none      | 4.2.4   |
| autoptimize             | active   | none      | 3.0.4   |
| block-guide-lines       | active   | none      | 1.0     |
| cookie-law-info         | active   | none      | 2.1.2   |
| jetpack                 | active   | none      | 10.9.1  |
| matomo                  | inactive | none      | 4.10.0  |
| real-media-library-lite | active   | none      | 4.18.6  |
| wp-security-audit-log   | active   | none      | 4.4.1   |
| wp-maintenance-mode     | active   | none      | 2.4.4   |
| wp-super-cache          | active   | available | 1.7.7   |
| advanced-cache.php      | dropin   | none      |         |
+-------------------------+----------+-----------+---------+
[root@wpserver site1]# wp plugin activate matomo 
Plugin 'matomo' activated.
Success: Activated 1 of 1 plugins.
[root@wpserver site1]# wp plugin list
PHP Fatal error:  Uncaught Error: Class 'WP_Network' not found in /data/www/html/site1/wp-includes/ms-network.php:34
Stack trace:
#0 /data/www/html/site1/wp-content/plugins/real-media-library-lite/vendor/devowl-wp/real-product-manager-wp-client/src/Utils.php(37): get_network()
#1 /data/www/html/site1/wp-content/plugins/real-media-library-lite/vendor/devowl-wp/real-product-manager-wp-client/src/PluginUpdate.php(149): MatthiasWeb\RealMediaLibrary\Vendor\DevOwl\RealProductManagerWpClient\Utils::isMu()
#2 /data/www/html/site1/wp-content/plugins/real-media-library-lite/vendor/devowl-wp/real-product-manager-wp-client/src/license/PluginUpdateLicensePool.php(260): MatthiasWeb\RealMediaLibrary\Vendor\DevOwl\RealProductManagerWpClient\PluginUpdate->getPotentialBlogIds()
#3 /data/www/html/site1/wp-content/plugins/real-media-library-lite/vendor/devowl-wp/real-product-manager-wp-client/src/license/PluginUpdateLicensePool.php(296): MatthiasWeb\RealMediaLibrary\Vendor\DevOwl\RealProductManage in /data/www/html/site1/wp-includes/ms-network.php on line 34
Fatal error: Uncaught Error: Class 'WP_Network' not found in /data/www/html/site1/wp-includes/ms-network.php:34

Fixed – was a bug/mistake in Real-Media-Library …

1 Like