wp-migrate-db
wp-migrate-db copied to clipboard
array_merge(): Expected parameter 2 to be an array, bool given
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