• Resolved Stefano Toria

    (@gattogrigio)


    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.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello, Stefano, & welcome. Are you perchance using wpml? If yes, please make certain you have the latest version of that plugin, as this is a known issue.

    Thread Starter Stefano Toria

    (@gattogrigio)

    Thank you Jackie. Indeed I do have WPML and I do not have the latest version.

    I shall try updating that, see if the trouble is fixed, if not I’ll come back to shout for more help ??

    Thread Starter Stefano Toria

    (@gattogrigio)

    I updated WPML and the error message has disappeared.

    God bless you Jackie, thank you from the bottom of my heart.

    Glad it was that simple, Stefano. Thank you for your very kind words. If you would, please mark this topic as ‘resolved’ so the volunteers know you’ve been helped & can go on to help others. Thanks for that. I wish you a blessed holiday season & all success w/your website. Make your passwords tankproof, update your site frequently, delete unused plugins/themes, find substitute plugins &/or themes for those you’re using but are no longer maintained, & you should be good to go for a long time. Don’t hesitate to come back here, though, if something else trips you up.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wpdb::prepare error message after moving to new domain’ is closed to new replies.