Support » Fixing WordPress » WordPress 3.5 Problems – Webistes Not Working More

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

    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.

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


    Forum Moderator

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

    PHP Warning: Missing argument 2 for wpdb::prepare()


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


    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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress 3.5 Problems – Webistes Not Working More’ is closed to new replies.