Comments (9)
Yep, this happened to me as well.
Version 2.2 works fine, but the current commit (129419a) does not properly re-serialize.
If anyone else is having this problem please use 2.2, the cli is not as fully featured as 3.0, but it works well:
https://github.com/interconnectit/Search-Replace-DB/tree/2.2.0
from search-replace-db.
Hi, sorry it's caused you problems. Very strange. I'll add some test cases
for the cli script. Can provide any additional info eg. PHP version etc?
from search-replace-db.
I know it's been a couple years, but any update on this? I just used the current version and it didn't serialize settings in my wp_postmeta table.
from search-replace-db.
Will be looking more into this soon
from search-replace-db.
Any news on this?
from search-replace-db.
At least for my needs, I discovered what happened with the some data in wp_postmeta. I posted details about this issue with WP-CLI's search-and-replace feature.
from search-replace-db.
just hit this :( Beaver Builder stores serialized PHP objects in wp_postmeta
and certain string lengths weren't properly updated after changing the website url. the weird part is that it worked correctly in some cases, but failed in others (2 rows ok, 4 rows broken) with no obvious reason - the data is pretty similar in all 6 cases. they all contain UTF8 text, including 3-byte characters like em-dashes (the readme mentions them as problematic).
from search-replace-db.
@lubieowoce you could try changing the data in those 6 cases until it works successfully. Typically if the unserialisation fails it's because the object is not a stdClass
and some other type of object that isn't loaded when the script is running. It's really unfortunate beaver builder stores custom objects in the database like this :/
from search-replace-db.
they are stdClass
. however i just realized there's a chance that my issue isn't caused SRDB at all – i changed the url when restoring a Duplicator backup, so it might've gotten messed up back then (still weird that some of the posts were updated correctly). i'll make a fresh copy and try to eliminate that possibility
from search-replace-db.
Related Issues (20)
- [PHP8] SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'args' at row 1 HOT 12
- Is it safe to unserialize untrusted data for replacing?
- Possible XSS vulnerability HOT 5
- Poor CSS in search & replace script v. 4.1.3 HOT 4
- Incomplete or ill-typed serialization data HOT 14
- Array to string conversion when using regex
- Escaped URLs are not found HOT 4
- Skip the tables HOT 1
- found AJAX error
- Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in srdb.class.php on line 861
- Escaped URL seems to be ignored with Regex
- -bash: !28: event not found HOT 3
- [PHP8] SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'url' at row 1 HOT 2
- Make selected tables filterable HOT 1
- Erroneous data format for unserializing HOT 1
- Highlighting is gone after version 4.0, Can you bring it back? HOT 1
- Errors on PHP 8.1 HOT 6
- INFO: Local database connection refused HOT 1
- db: SQLSTATE[HY000] [2002] Connection refused
- table name 'wp_mmp_rechnung_history_2014-05-19' crashes srdb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from search-replace-db.