This thread is resolved. Here is a description of the problem and solution.

Problem: Notices related to esc_sql() after updating to WordPress 4.8.3 Solution: Updating to the fixed version - WPML 3.8.4 Relevant Documentation: https://make.wordpress.org/core/2017/10/31/changed-behaviour-of-esc_sql-in-wordpress-4-8-3/

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by George Botsev 2 years, 6 months ago.

Assigned support staff: George Botsev.

Author Posts
November 1, 2017 at 8:48 am #1417560

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+03:00)

After updating to WordPress 4.8.3, you might encounter a notice like that one:

Notice: wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (1) for the number of arguments passed (3). Please see Debugging in WordPress for more information.

This is caused by a change in WordPress as described here: make.wordpress.org/core/2017/10/31/changed-behaviour-of-esc_sql-in-wordpress-4-8-3/

We released a new release - WPML 3.8.4 which fixes these notices.

You can get it manually from this site in Account > Downloads or automatically if you have registered WPML using the guide here: https://wpml.org/faq/install-wpml/#receiving-updates

November 2, 2017 at 7:29 am #1418520

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+03:00)

Closing this ticket as it is resolved in the release of WPML 3.8.4