• Resolved flx0

    (@flx0)


    Hi,

    There is a conflict between Updraft (1.22.1) and the latest WPML (4.5.4).

    A fatal error is preventing us to access wp-admin without disabling Updraft :

    Fatal error: Uncaught Error: 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 on line 39

    Pile d’appel :
    
    array_diff()
    wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/upgrade/AutoUpgrade.php:39
    OTGS\I\U\AutoUpgrade::modifyAutoUpdatePluginsOption()
    wp-includes/class-wp-hook.php:309
    WP_Hook::apply_filters()
    wp-includes/plugin.php:189
    apply_filters()
    wp-includes/option.php:1755
    update_network_option()
    wp-includes/option.php:1353
    update_site_option()
    wp-content/plugins/updraftplus/class-updraftplus.php:5948
    UpdraftPlus::replace_auto_updates_option()
    wp-content/plugins/updraftplus/class-updraftplus.php:5934
    UpdraftPlus::wordpress_55_updates_potential_migration()
    wp-includes/class-wp-hook.php:307
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:331
    WP_Hook::do_action()
    wp-includes/plugin.php:474
    do_action()
    wp-admin/admin.php:175
    require_once()
    wp-admin/plugins.php:10

    I’m not sure if the problem comes from updraft or wpml, but it look likes it’s happening in updraft (replace_auto_updates_option()).

    Do you think I should also report this to WPML ?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor bcrodua

    (@bcrodua)

    Hi,

    Thanks for reporting this to us. I have already forwarded this to our development team and will investigate further on the issue.

    Thanks,
    Bryle

    Hi @flx0

    We managed to reproduce the issue you reported, and we find out that the issue appears to have happened only on PHP 8. Before the PHP 8 version, you would not get the fatal error message as it would only produce PHP warnings that could be seen in the PHP log file. As of PHP 8, some PHP functions (e.g. array_diff) are quite strict about the data type of their parameters, they now turn warnings into fatal errors. It seems that you encountered the issue when you tried to activate UpdraftPlus the first time while the WPML plugin was already active. However, this is not something that needs to be fixed from our side; you might want to contact the WPML support and let them know that one of their 3rd party libraries has the potential to produce a fatal error on PHP 8 (you could provide them with the error log, and perhaps the steps to reproduce the issue too). Meanwhile, there’s one thing you can do to get the UpdraftPlus to work, you could first deactivate the WPML plugin and activate the UpdraftPlus afterwards, and then reactivate back the WPML plugin; this way you won’t get the PHP fatal error message.

    Thanks
    Anthon

    Thread Starter flx0

    (@flx0)

    Thank you for your answer, I’ll report that to WPML.

    Have a nice day

    Hi, this problem is still there and I can’t use UpdraftPlus on a WPML installation w/PHP8

    Hi @jstark55

    It seems like no one has reported about the issue to the WPML. I’ve posted a new topic in their support forum. Meanwhile, to get UpdraftPlus to work with the sitepress-multilingual-cms plugin, you need to deactivate that plugin first, and then on your Plugins page, look for a plugin that has Enable auto-updates link text in its Automatic Updates column, click the link to enable auto-updates for that plugin, then click it again to change the setting to what it was (if you think it’s not necessary to have auto-updates enabled for that plugin), after that you can reactivate the plugin and use UpdraftPlus with it.

    Thanks
    Anthon

    Thanks @anthoniusalfred , that worked.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Conflict with WPML’ is closed to new replies.