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_search() expects parameter 2 to be array #129

Open ylkyrg opened 2 years ago

ylkyrg commented 2 years ago

Warnings and notices are thrown when using wp migratedb export without the optional --find and --replace flags with PHP 7.4 and WP Migrate DB 2.2..

Notice: Undefined index: replace_old in [...]/plugins/wp-migrate-db/class/Common/Sql/Table.php on line 1909
Warning: array_search() expects parameter 2 to be array, null given in [...]/plugins/wp-migrate-db/class/Common/Sql/Table.php on line 1909
Notice: Undefined index: replace_new in [...]/plugins/wp-migrate-db/class/Common/Sql/Table.php on line 1912
Notice: Trying to access array offset on value of type null in [...]/plugins/wp-migrate-db/class/Common/Sql/Table.php on line 1912
Warning: Invalid argument supplied for foreach() in [...]/plugins/wp-migrate-db/class/Common/Replace.php on line 272
kevinwhoffman commented 2 years ago

Hey @ylkyrg, thanks for this report. These notices should be resolved in the next release.