- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.5.7
- Resolved in
- 4.6.0
Overview of the issue
If you are running a server with PHP8, whenever you try to activate the Enable auto-updates option in Dashboard → Plugins, you will get the following error:
PHP Fatal error: Uncaught TypeError: array_diff(): Argument #2 must be of type array, bool given in …/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/upgrade/AutoUpgrade.php:39
Workaround
As a workaround:
- Go to Dashboard → Plugins.
- Disable WPML Multilingual CMS.
- Activate the Enable auto-updates option.
- Re-enable WPML.