0

An error message is displayed :

The query does not contain the correct number of placeholders (1) for the number of arguments passed (2). This message was added in version 4.8.3.

Problem: I am using Wordpress 4.3.22 .

Anybody has an explanation?

NB: that message is coming from wpdb::prepare.

6
  • This may as well be version of some plugin. Commented Feb 19, 2020 at 19:04
  • No it's not, as it's coming from wpdb::prepare. It's strictly hard-written "4.8.3" in the 4.3.22 version of wp-db.php.
    – theredled
    Commented Feb 19, 2020 at 19:06
  • WordPress 4.3 is 5 years old. You really should not be using a version that old. Commented Feb 19, 2020 at 23:37
  • @JacobPeattie WP 4.3.22 is 1 year old.
    – theredled
    Commented Feb 19, 2020 at 23:57
  • A minor security patch is. You should not be 8 major versions behind. Commented Feb 19, 2020 at 23:58

1 Answer 1

0

Well, this is some hasty copy/paste mistake in WP code while backporting features/bugfixes to older versions. Checked 4.3.22 code - it indeed contains version number 4.8.3 attached to this error message.

7
  • It also contains 4.9.0 (same method) and so on. I don't think it's a copy/paste mistake.
    – theredled
    Commented Feb 19, 2020 at 19:29
  • Or it's a big big one.
    – theredled
    Commented Feb 19, 2020 at 19:33
  • Does this really changes something for you? There is nothing big here. Just rational software development process. Feature from newer version was backported to older version. They could change version numbers to reflect older version, but that would require additional work without any benefits. You can read it as "this message was added in version 4.8.3, but it was later backported to version 4.3.22". If you need more info, study this commit github.com/WordPress/WordPress/commit/… Commented Feb 19, 2020 at 19:42
  • Yes it does, it's making my WPML plugin buggy.
    – theredled
    Commented Feb 19, 2020 at 20:04
  • What's more, it's strange that a minor update makes major feature changes. Backwards compatibility should be reliable for minor updates.
    – theredled
    Commented Feb 19, 2020 at 20:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.