WordPress.org

Ready to get started?Download WordPress

Forums

WordPress 3.5 Problems - Webistes Not Working + More (5 posts)

  1. MissErikaMarie
    Member
    Posted 1 year ago #

    I've just updated two of my three websites to WordPress 3.5 and have encountered a number of problems. I've tried the troubleshooting options in the threads, and I have to preface my complaint by saying I'm a bit of a novice when it comes to coding, so please be patient and bear with me when it comes to finding a plausible solution. I must also admit that I did the basic troubleshooting of deleting all plugins, clearing cookies and my cache, however I'm a little confused by the rest.

    http://www.downtownsaints.com
    http://www.younghipscene.com

    Problems I'm having:
    -Add media button doesn't work. Nothing happens when I push it.
    -Dashboard taking a very long time to load.
    -Dashboard not loading at all.
    -Website not loading at all.
    -Website only partially loading.
    -Tags not working. When adding a tag, it reloads the entire page as if to save the draft

    I am receiving this error on Downtown Saints:

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/50/9742250/html/wp-content/themes/Compra/includes/meta-boxes.php on line 40 and defined in /home/content/50/9742250/html/wp-includes/wp-db.php on line 990

    While Young Hip Scene site won't load at all. If someone can help I'd really appreciate it. I'll try to follow instructions as much as I can.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    Also please read this with regards to the prepare() problem.

    http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/

  4. MissErikaMarie
    Member
    Posted 1 year ago #

    Esmi,

    I've studied that post, and it didn't seem to help my problem.

    Samuel,

    Thanks for the link. It was really helpful, and I did check in out in an attempt to solve the issue, but I have to admit I was a bit confused. I was able to get into my wp-config.php and find the line that was causing the error, but couldn't figure out how to rectify the problem.

    It currently looks like this:

    $product_options = $wpdb->get_var($wpdb->prepare("SELECT options_1 FROM $table_name WHERE item_number = '$item_number';"));

    I did send the error over to the theme developer to see if they would have a speedy correction, but until then the error is both on my website and 'add new post' page.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    Here's the fixed line for that particular code:

    $product_options = $wpdb->get_var($wpdb->prepare("SELECT options_1 FROM $table_name WHERE item_number = %s;", $item_number));

    That will remove the warning and eliminate the potential security issue.

Topic Closed

This topic has been closed to new replies.

About this Topic