Upgraded last blog to 2.6 Theme will not display. Suggestions?

Discussion in 'WordPress' started by hmansfield, Aug 8, 2008.

  1. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #21
    Well after combing the internet including the Wordpress forums, and customer support from the theme author...it seems so one knows what the problem is, or why that theme will not work. It seems to work for everyone else that has purchased the theme.
    I have seen countless threads about themes not displaying in 2.6, but no one seems to ever have a fix for what the possible problem is.

    So after 5 days of my blog being down, and doing every suggestion under the sun. I am back to square one.
     
    hmansfield, Aug 13, 2008 IP
  2. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #22
    OK I did stumble upon this when I went to manage my pages. It won't let me. It gives me this error message inside admin :

    Fatal error: Call to a member function query() on a non-object in /usr/www/virtual/xxxx/www.xxxxxx.com/wp-admin/includes/template.php on line 557


    According to my editor this is line 557:

    $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET post_parent = '1' WHERE ID = %d", $page->ID) );

    Anyone know what that means ?
     
    hmansfield, Aug 13, 2008 IP
  3. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #23
    OK I did stumble upon this when I went to manage my pages. It won't let me. It gives me this error message inside admin :

    Fatal error: Call to a member function query() on a non-object in /usr/www/virtual/xxxx/www.xxxxxx.com/wp-admin/includes/template.php on line 557


    According to my editor this is line 557:

    $wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET post_parent = '0' WHERE ID = %d", $page->ID) );

    Anyone know what that means ?
     
    hmansfield, Aug 13, 2008 IP
  4. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #24
    HOLY CRAP..... I FIXED IT !!!!!!!

    OK, so here is why I had the problem. I really hope this helps someone.

    After tooling around in the admin area, just to make sure that everything else WAS working, I noticed that i could not access Page Management, and I kept getting this error:
    Fatal error: Call to a member function query() on a non-object in /usr/www/virtual/xxxx/www.xxxxxx.com/wp-admin/includes/template.php on line 557

    I then noticed that I had 99 published pages ! Yikes ! Pages that were created over the last year or so that I either did not use, or just abandoned, yet never deleted. So I started wondering if that was causing the theme not to load.
    So how do I delete pages if it wont let me access them in "Manage" mode ?

    I simply typed an "a" in the search bar...and every page listed.
    I started deleting old pages that I did not use, and got it down to a reasonable amount (under 12 including subpages) loaded the theme, and it worked perfectly.
    Yeah baby !
     
    hmansfield, Aug 13, 2008 IP