WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I need some help (15 posts)

  1. SonnyJames
    Member
    Posted 1 year ago #

    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

  2. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

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

  3. SonnyJames
    Member
    Posted 1 year ago #

    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

  4. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    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.

  5. SonnyJames
    Member
    Posted 1 year ago #

    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

  6. SonnyJames
    Member
    Posted 1 year ago #

    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

  7. viky081
    Member
    Posted 1 year ago #

    Kindly mark your topic is resolved.If you fixed :)

  8. Ronald M Allen
    Member
    Posted 1 year ago #

    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

  9. alchymyth
    Forum Moderator
    Posted 1 year ago #

    @Seniors4Generations

    please don't interrupt an existing topic
    - start a new topic for your question.

  10. iain2474
    Member
    Posted 1 year ago #

    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]

  11. alchymyth
    Forum Moderator
    Posted 1 year ago #

    @iain2474

    please start a new topic;

    your error is caused by a different plugin.

  12. iain2474
    Member
    Posted 1 year ago #

    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

  13. alchymyth
    Forum Moderator
    Posted 1 year ago #

    @iain2474

    start your own topic.

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

  14. iain2474
    Member
    Posted 1 year ago #

    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

  15. alchymyth
    Forum Moderator
    Posted 1 year ago #

    @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.

Topic Closed

This topic has been closed to new replies.

About this Topic