GithubHelp home page GithubHelp logo

Comments (7)

pribis avatar pribis commented on September 27, 2024

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.

pribis avatar pribis commented on September 27, 2024

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.

hakankpunkt avatar hakankpunkt commented on September 27, 2024

What is the character set on your database and table; and what is your character set for searchreplacedb2?

from search-replace-db.

pribis avatar pribis commented on September 27, 2024

utf8 for table and script.

from search-replace-db.

hakankpunkt avatar hakankpunkt commented on September 27, 2024

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.

roborourke avatar roborourke commented on September 27, 2024

@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.

zanzix avatar zanzix commented on September 27, 2024

This should have been fixed now

from search-replace-db.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.