deliciousbrains / wp-migrate-db

WordPress plugin that exports your database, does a find and replace on URLs and file paths, then allows you to save it to your computer.
https://wordpress.org/plugins/wp-migrate-db/
341 stars 515 forks source link

array_merge(): Expected parameter 2 to be an array, bool given #131

Open minemindmedia opened 2 years ago

minemindmedia commented 2 years ago

Unable to access admin page for multisite network. Whoops throws this error:

[2021-12-21 21:03:34] development.ERROR: array_merge(): Expected parameter 2 to be an array, bool given {"userId":1,"exception":"[object] (ErrorException(code: 0): array_merge(): Expected parameter 2 to be an array, bool given at /srv/www/project.com/current/web/app/plugins/wp-migrate-db-pro/class/Common/Filesystem/Filesystem.php:1005)

The offending line: $active_plugins = array_merge($active_plugins, $site_plugins);

I was able to bypass this with this for now: $active_plugins = array_merge($active_plugins, array($site_plugins));

PHP 7.4.26 Migrate DB 2.2