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

Erroneous data format for unserializing #375

Open
paulpestov opened this issue Feb 17, 2022 · 1 comment
Open

Erroneous data format for unserializing #375

paulpestov opened this issue Feb 17, 2022 · 1 comment

Comments

@paulpestov
Copy link

Hey, I'm using it on Wordpress + ACF plugin and when running the script for the first time everything is ok. But applying the script a second time causes the error below. The replacement still seems to be working and does not break ACF values (especially links) as far as I can see.

The use case would be local db -> stage db -> live db.

2: Erroneous data format for unserializing 'Requests_Utility_CaseInsensitiveDictionary' in /home/www/web271.s188.goserver.host/replace/srdb.class.php on line 835

This is usually caused by a plugin storing classes as a serialised string which other PHP classes can't then access. It is not possible to unserialise this data because the PHP can't access this class. P.S. It's most commonly a Yoast plugin that causes this error. Your changes will still have taken place within the rest of the database.
@f1rf1n
Copy link

f1rf1n commented Jan 30, 2023

Had the same problem. for me using the CLI version instead of the webbased form worked.
I still got the error mesages, but all my string were replaced anyway

php Search-Replace-DB/srdb.cli.php -h [databasehostname] -n [DBname] -u [DBuser] -p "[DBpasswd]" -s "[searchstring]" -r "[replacestring]" --verbose

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

No branches or pull requests

2 participants