Title: Problem after upgrade
Last modified: August 21, 2016

---

# Problem after upgrade

 *  [daspin](https://wordpress.org/support/users/daspin/)
 * (@daspin)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problem-after-upgrade-7/)
 * Hope someone can help me.
 * Please see the site osmmag.com. After the upgrade there is an error along the
   top, which seems to be related to the ad engine plugin. I need to fix it. This
   plugin was customized for us so I can’t just replace it.
 * Here’s what it says
    Warning: Missing argument 2 for wpdb::prepare(), called 
   in /home4/osmatv/public_html/wp-content/plugins/ad-engine/ad-engine.php on line
   523 and defined in /home4/osmatv/public_html/wp-includes/wp-db.php on line 992
 * Warning: Missing argument 2 for wpdb::prepare(), called in /home4/osmatv/public_html/
   wp-content/plugins/ad-engine/ad-engine.php on line 528 and defined in /home4/
   osmatv/public_html/wp-includes/wp-db.php on line 992
 * So I went and looked at line 523 and it’s this
    $count = $wpdb->get_var($wpdb-
   >prepare($sql));
 * and line 528 says
    $wpdb->query($wpdb->prepare($sql));
 * Anyways, I have NO IDEA how to fix this.. Anyone able to help? PLEASE

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problem-after-upgrade-7/#post-4362907)
 * You have a bad plugin or theme. Have you tried:
 * – deactivating **all** plugins to see if this resolves the problem. If this works,
   re-activate the plugins one by one until you find the problematic plugin(s).
 * – switching to the default theme to rule out any theme-specific problems.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems.
 *  Thread Starter [daspin](https://wordpress.org/support/users/daspin/)
 * (@daspin)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problem-after-upgrade-7/#post-4362910)
 * Yes, the bad plugin is called Ad Engine, but I need it to work. It was customized
   for me so I can’t really replace it right now. Is there something I can fix in
   code?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problem-after-upgrade-7/#post-4362947)
 * Try asking on [http://wordpress.org/support/plugin/ad-engine](http://wordpress.org/support/plugin/ad-engine)
 * However, the plugin hasn’t been updated in almost 3 years and may no longer be
   supported.

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

The topic ‘Problem after upgrade’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/problem-after-upgrade-7/#post-4362947)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
