• Resolved Scatmanat

    (@scatmanat)


    I just finished changing servers and transferring my database for my blog and now every post has code in it online. Things like ” or ‘ show up in code.

    Does anyone know why this is and how I can fix the issue without manually fixing each and every error on my 647 post?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • What codes showed up on your site?

    Thread Starter Scatmanat

    (@scatmanat)

    ?
    a€?
    a€?
    a€?

    Those are a few I’m getting

    I found a query I can run in mysql database that will find and replace the code but when I ran it I got the following:

    SQL query:

    UPDATE wp_posts SET post_content = REPLACE( post_content, ‘a€?’, ‘“’ ) ;

    MySQL said: Documentation
    #1146 – Table ‘example.com.wp_posts’ doesn’t exist

    The query came from this site:
    https://www.wprecipes.com/easily-remove-weird-characters-from-your-wordpress-database

    @scatmanat,

    The SQL code looks legit. Though backup the website before running the query, just to be on the safe side.

    Thread Starter Scatmanat

    (@scatmanat)

    John,

    My site is newly backed up and I ran the query and as you can see above it didn’t work. Suggestions as to why it’s saying my site doesn’t exist?

    @scatmanat,

    P.s. I’ve seen such issue before. In this case you should also check the comments and all the content you’ve or the public generated.

    Most probably this issue happened because of the encoding used by the backup or restore tool you used.

    John Bonello

    Thread Starter Scatmanat

    (@scatmanat)

    John,

    I have almost no knowledge of what I’m doing here so I’m lost when you suggest looking at my comments. What do they have to do with the query not running because it can’t find my database?

    The error you are getting says that the table wp_posts in the database adventuresofscatman_com_3 does not exist.

    Is this the correct database name?

    P.s. for security reasons I wouldn’t mention any database names here. Drop me an email on [email address removed] and we will try to sort it out. Let me know what you are using to connect to MySQL, if phpMyAdmin or so.

    John

    Thread Starter Scatmanat

    (@scatmanat)

    john,

    thanks. I edited my post with the database name, can you do the same so it’s not on here.

    I’ll be in touch if my next attempt fails.

    grrrr… unfortunately cannot edit forum posts after some time…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Code showing up on site’ is closed to new replies.