While I am trying to set up Updraft Plus, for backup reasons I get this message:
PHP Fatal error (TypeError) has occurred during save settings. Error
Message: array_diff(): Argument #2 must be of type array, bool given
(Code: 0, line 39 in
/home/www/emprime/emprimevintage.com/www/wp-content/plugins/woocommerce-multilingual/vendor/otgs/installer/includes/upgrade/AutoUpgrade.php)
I am new to WordPress and coding so it is very difficult for me to resolve this problem. The site was made by somebody else and I can’t come in contact with him.
Can anybody help me to resolve the issue?
2
Answers
The error that you posted shows that there is some issue with the plugin called "WooCommerce Multilingual & Multicurrency with WPML" try deactivating that plugin and see if that resolves the issue.
As found here: https://wpml.org/errata/php8-fatal-error-uncaught-typeerror-array_diff-argument-2-must-be-of-type-array/
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:
plugin)
It worked for me, then I could save the settings for Updraftplus.