Title: Function wpdb::prepare was called incorrectly.
Last modified: December 9, 2024

---

# Function wpdb::prepare was called incorrectly.

 *  [rdogra](https://wordpress.org/support/users/rdogra/)
 * (@rdogra)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/function-wpdbprepare-was-called-incorrectly/)
 * Hi Team,
 * I am getting below error on Dashboard and website is showing 404 error. I checked
   hosting provider and they told me that its an issue WordPress code
 * **Notice**: Function wpdb::prepare was called **incorrectly**. The query argument
   of wpdb::prepare() must have a placeholder. Please see [Debugging in WordPress](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   for more information. (This message was added in version 3.9.0.) in **/home/kzmyx2mxkvh4/
   public_html/wp-includes/functions.php** on line **6085**.
 * PHP Warning: Undefined variable $image_html in /home/kzmyx2mxkvh4/public_html/
   wp-content/plugins/gt3-themes-core/core/elementor/widgets/imagebox/render.php
   on line 178
   [09-Dec-2024 05:13:50 UTC] PHP Warning: Undefined variable $data 
   in /home/kzmyx2mxkvh4/public_html/wp-content/plugins/mailchimp-for-wp/includes/
   class-mailchimp.php on line 439
 * Please help
 * Thank you

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [1 year, 6 months ago](https://wordpress.org/support/topic/function-wpdbprepare-was-called-incorrectly/#post-18188359)
 * The issue is in your plugin `gt3-themes-core`
 * Is that from [https://gt3themes.com/](https://gt3themes.com/) ?
 * If so, you’ll want to ask them directly.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/function-wpdbprepare-was-called-incorrectly/#post-18188402)
 * I suspect one of the plugins you are using is causing this error. Deactivate 
   all plugins once and then activate them individually until the error occurs again.
   Then you will have found the culprit plugin.
 * The 2nd message is a warning that comes from a plugin that was probably installed
   together with your theme. You should contact the theme support for this.
 *  Thread Starter [rdogra](https://wordpress.org/support/users/rdogra/)
 * (@rdogra)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/function-wpdbprepare-was-called-incorrectly/#post-18188466)
 * Thanks for your advise.
 * After removing one of the unnecessary plugin, following error has gone but still
   website is showing 404 error
 * **Notice**: Function wpdb::prepare was called **incorrectly**. The query argument
   of wpdb::prepare() must have a placeholder. Please see [Debugging in WordPress](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/)
   for more information. (This message was added in version 3.9.0.) in **/home/kzmyx2mxkvh4/
   public_html/wp-includes/functions.php** on line **6085**
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/function-wpdbprepare-was-called-incorrectly/#post-18188492)
 * If you want to continue using the plugin, please contact the plugin’s support
   team for clarification.
 * Go to Settings > Permalink in the backend and save it again without making any
   changes. If you are using a caching plugin, also clear its cache.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Function wpdb::prepare was called incorrectly.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/function-wpdbprepare-was-called-incorrectly/#post-18188492)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
