• 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)
  • 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 by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Thread Starter daspin

    (@daspin)

    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?

    Try asking on 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.