Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix wpdb::prepare error message after moving to new domain

Discussion in 'Misc WordPress Requests' started by Stefano Toria, Dec 10, 2017.

  1. Stefano Toria


    wpdb::prepare error message after moving to new domain, by Stefano Toria

    I am getting this message, the text is in German but I’m sure it will look familiar to someone with more knowledge than myself about the innards of WordPress:

    Notice: wpdb::prepare wurde fehlerhaft aufgerufen. Die Abfrage enthält nicht die korrekte Anzahl von Platzhaltern (2) für die Anzahl der übergebenen Argumente (3). Weitere Informationen: Debugging in WordPress (engl.) (Diese Meldung wurde in Version 4.8.3 hinzugefügt.) in /data/www/www398/www/wp-includes/functions.php on line 4146

    Scenario: I’ve been running this blog/site for more than a year on a server run by a provider in Switzerland.

    Then we rebranded and I bought a new domain, and moved the whole thing from the old to the new domain.

    I followed one of the several guides available around, but basically what I did was to move the static stuff via FTP, then I backed up the MySQL site on the old and restored on the new domain, fixed what was to be fixed and I was up and running.

    Save for this message, which I can’t get rid of.

    BTW: I am undergoing a major theme switch, but the issue here above is theme independent. I get the same message both with the old theme (TwentySixteen-child) and with the new (BeTheme).

    And no, I didn’t go back to the old domain to check if it still works. I moved it aside and replaced it with a work-in-progress static page.

    Can anybody help me pinpoint the issue and fix it please?

    Thanks in advance, Stefano

    Technical stuff:
    – – – – – – – – –
    Browsers: Firefox and Chrome, latest versions.
    Server: Unix/Apache (no idea which version, can find out, but I am 100% sure it’s the same for both the old and the new domain.
    PHP is 5.6; 7.0 is available and I could switch, but before wreaking havoc onto the whole site, I’d wait until I have to.
    MySQL is 5.7.15-log – at least, that’s what phpMyAdmin says.

    wpdb::prepare error message after moving to new domain

Share This Page

Monarch Social Sharing Plugin