WordPress.org

Ready to get started?Download WordPress

Forums

warning message on my posts (5 posts)

  1. 31gabib
    Member
    Posted 1 year ago #

    Hi, starting today or last night, I realized warning message on all my post with pictures
    Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/26/9888026/html/wp-content/plugins/nextgen-gallery/lib/tags.php on line 318 and defined in /home/content/26/9888026/html/wp-includes/wp-db.php on line 990
    what does it mean and how to resolve this.
    Thank you.

  2. mar1965
    Member
    Posted 1 year ago #

    Hi,

    Did you just upgrade to WordPress 3.5 recently? If so, please read this post: PHP Warning Missing Argument 2 for wp-db(prepare). The top section of the post describes how to turn off the warnings. The rest of the post is geared towards developers of plugins and themes. The path you provided in the initial part of your post appears to be plugin related. You may need to contact the developer of the plugin.

  3. 31gabib
    Member
    Posted 1 year ago #

    o.k. thanks, that is very helpful. Just please tell me, where do I find wp-config.php
    I think I have been searching for it before as I wanted to set up subdomain and could not find it.
    I am not a programer, just a user so I need simple step by step explanation, please. Thank you.

  4. mar1965
    Member
    Posted 1 year ago #

    Not a problem at all.

    The wp-config.php file should be located in the root directory - the same directory/folder that WordPress is installed in. In your case, it looks like it is in the html directory. To edit the file, you will need access:

    1) Through your hosting account control panel file manager
    2) Or, using an ftp program

    Once you've found the file:

    1) Download it to your local drive
    2) Make an extra copy before making changes (just in case something goes wrong and you need to restore it later on)
    3) Modify the file (making the changes recommended in the original link that I sent you) using a text editor
    4) Save the changes
    5) Upload the file to the same directory where you downloaded it from

  5. 31gabib
    Member
    Posted 1 year ago #

    I must admit I am not much smarter now :-) but I will try - once I will be able to locate it (or better to find the control panel file manager) I should be fine :-) Thank you again very much.

Topic Closed

This topic has been closed to new replies.

About this Topic