Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array_search() expects parameter 2 to be array #129

Open
ylkyrg opened this issue Nov 18, 2021 · 1 comment
Open

array_search() expects parameter 2 to be array #129

ylkyrg opened this issue Nov 18, 2021 · 1 comment

Comments

@ylkyrg
Copy link

ylkyrg commented Nov 18, 2021

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants