Comments (7)
That's odd, when I run the script over wp_options it tells me it replaced the string four times. However, I've exported the entire database before running the script and grep'd it and only find three instances of the string. If I export the database after the script runs, the same strings are still there. To make things even more confusing, when I re-run the script it doesn't find anything...but the values are there.
And before you ask, I've made sure I'm running the script on the same database I'm exporting. I've also search the option_value field and found the value directly in the table and found it there both before and after the search and replace.
from search-replace-db.
Ok, I've found something. I think the replace is messing up the serialized array. For example, before I run the script I see stuff like this:
;s:0:"";}}}s:36:"http:
After I see:
;s:0:"";}}}}}}}s:36:"http:
from search-replace-db.
What is the character set on your database and table; and what is your character set for searchreplacedb2?
from search-replace-db.
utf8 for table and script.
from search-replace-db.
In my case it was the utf8 mismatch causing the problem. I have no other clue in this case for you.
from search-replace-db.
@pribis are you able to replicate this problem still? If it isn't character encoding I don't know what it might be
from search-replace-db.
This should have been fixed now
from search-replace-db.
Related Issues (20)
- 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
- Does not work on php 8.2+ 8.3 runs into a loop and a fatal. HOT 2
- Exclude tables with * wildcard
- Abandoned?
- syntax error, unexpected namespaced name "WpOrg\Requests\Utility\CaseIns...", expecting identifier
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.