Support » Fixing WordPress » I need some help

  • Resolved SonnyJames

    (@sonnyjames)


    I just updated to the 3.5 version and now I have this on all my pages

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/handyman/public_html/wp-content/plugins/nextgen-gallery/lib/tags.php on line 315 and defined in /home/handyman/public_html/wp-includes/wp-db.php on line 990

    I can’t seem to edit the pages with this new version – the old version allowed me to just remove , but this new version is not

    wish I hadn’t updated

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator kmessinger

    (@kmessinger)

    See http://wordpress.org/support/topic/troubleshooting-wordpress-35-master-list?replies=4 which has information about Missing argument 2 for wpdb::prepare(),

    I can’t seem to find the link for info (Missing argument 2 for wpdb::prepare)

    I’ll give it a day and if no solution I will have to pay for my web guy to fix this which really sucks

    Is there a way to just go back to my previous version? In my opinion much simpler to make changes etc

    Moderator kmessinger

    (@kmessinger)

    Error message: Warning: Missing argument 2 for wpdb::prepare(), called in … (happens in themes and plugins)

    Fix: Your site is fine, but you may wish to turn off PHP’s display errors setting. Contact your theme or plugin dev and point them to http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/ so they can fix the underlying issue.

    Hello plugin or theme author! You possibly found this post after searching the Internet for the error above: “PHP Warning: Missing argument 2 for wpdb::prepare().”

    So, this is a new warning in 3.5. No sites are broken, everything is fine as before. But, this is indeed something you need to look at, because you may be exposing your users to a possible SQL injection vulnerability. Now that’s no fun!

    First, if you’re a user and you want to get rid of these errors, you should turn off the displaying of errors in PHP. There are many ways to do this, such as in php.ini, .htaccess, etc. For this, you can just put this in wp-config.php. (Note that hiding errors on production sites is good practice anyway.)
    1

    @ini_set(‘display_errors’, 0);

    Ok how do I find displaying of errors in PHP on my site ? is there a way to simplify the instructions ie
    go here on the dashboard – click this & place the following ??? click enter and shazam your site is fixed . I really don’t want to have to spend over $100 dollars to have my web person fix this , so I’m hoping you could please simplify the how to fix instructions

    Update – Here’s how I fixed this aggravation ::

    I did a re-install
    I updated all the themes
    I updated all the plugins

    Guess what ZaZam – The error message disappeared

    So if anyone else gets this error after updating – try my fix it worked for me

    Happy New Year & to Kmessenger – I thankyou kindly for your help

    Kindly mark your topic is resolved.If you fixed 🙂

    Ronald M Allen

    (@seniors4generations)

    Does WordPress and their associates offer hands on technical support for existing web sites hosted on Host Monster using 3.5 version? I would like to enhance one of three sites I have built.
    Thank you
    Ronald M Allen

    @seniors4generations

    please don’t interrupt an existing topic
    – start a new topic for your question.

    Hi, i would like to try the fixes you suggest above on my sites but when i try to log into the dashboard i get a blank page and just the following messages –

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/iain2474/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 143 and defined in /home/iain2474/public_html/wp-includes/wp-db.php on line 990

    [long list of error messages moderated]

    @iain2474

    please start a new topic;

    your error is caused by a different plugin.

    thank you alchymyth. I have tried to do that but to no avail 🙁

    i assume its the buddypress plugin? but i can’t log in to begin to fix it

    @iain2474

    start your own topic.

    you will not get any answers here, as this would confuse the support for the existing topic.

    ok thank you

    my topic is here. i posted it 2 hours ago but haven’t received any help. maybe i’m doing something wrong? i’ve been searching for help for 2 hours

    http://wordpress.org/support/topic/i-cant-log-in-as-an-admin-since-35-upgrade?replies=1

    @iain2474

    thanks; alright – didn’t find that topic when I looked earlier.
    however, if a topic does not get answered (within two hours ?), this is no reason to interrupt other topics.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘I need some help’ is closed to new replies.