• Resolved ciantic

    (@ciantic)


    Error: The query argument of wpdb::prepare() must have a placeholder. This is new feature of WP.

    1. WP_DEBUG must be True
    2. Create CPT-onomy
    3. Go to post listing, and filter the list by one cpt-onomy.

    Fix:

    all prepares *without arguments*, e.g. get_row( get_prepare ( QUERY, ) ) must be replaced with get_row( QUERY )

    https://www.ads-software.com/plugins/cpt-onomies/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do you mind sharing your code or adding a little bit more info how to fix the error. Got the same problem but don’t know how to fix it. Never used $wpdb->prepare so i don’t quite understand what to do. And there is a ton of places where the plugin uses $wpdb->prepare. Thnx.

    slobich

    (@slobich)

    Updating to the version of the plugin on GitHub solved the issue for me. Just posting it here if someone else has the same problem.

    I just pushed out an update that hopefully fixes this for you. If you’re still having this issue after you upgrade to version 1.3.2, please let me know.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error in using wpdb->prepare during filter WP 4.0’ is closed to new replies.