WordPress.org

Support

Support » How-To and Troubleshooting » Upgrade error argument

Upgrade error argument

  • Hello,

    I was trying to help a client with an old site (WP 3.2.1) and did an upgrade to 3.9.1. Now I have an error message going across the top of the page. It seems to be referring to the template, but I’m not sure what to make of it. I’ve got a few more in the admin side, but would rather deal with this first.

    I’ve inherited this site and do not have developer’s contact information. Any assistance would be appreciated!! Willing to pay for reasonable help!

    Warning: Missing argument 2 for wpdb::prepare(), called in /nfs/c06/h06/mnt/97215/domains/socagalleria.com/html/wp-content/themes/brainstorm-1.6.2/functions/sidebars.php on line 70 and defined in /nfs/c06/h06/mnt/97215/domains/socagalleria.com/html/wp-includes/wp-db.php on line 1147

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

    @esmi

    Forum Moderator

    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.

    Thanks for your reply. Now I’ve gone back to the site and I cannot even log in… The wp-admin page says this only:

    Warning: Missing argument 2 for wpdb::prepare(), called in /nfs/c06/h06/mnt/97215/domains/socagalleria.com/html/wp-content/themes/brainstorm-1.6.2/functions/sidebars.php on line 70 and defined in /nfs/c06/h06/mnt/97215/domains/socagalleria.com/html/wp-includes/wp-db.php on line 1147

    Warning: Cannot modify header information – headers already sent by (output started at /nfs/c06/h06/mnt/97215/domains/socagalleria.com/html/wp-includes/wp-db.php:1147) in /nfs/c06/h06/mnt/97215/domains/socagalleria.com/html/wp-includes/pluggable.php on line 1121

    I’ve modified the theme folder through FTP (using same technique as plugins) and was able to log back in. So it is a bad theme. Since the theme does not offer any support, should I just revert back to an earlier version of WordPress or is there a way to fix it manually?

    esmi

    @esmi

    Forum Moderator

    Try asking the theme’s developer about this. Downgrading to an older version of WordPress is a very bad idea as it will result in your site running a very real risk of being hacked. If all else fails, I’d suggest looking for another theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upgrade error argument’ is closed to new replies.