• I’ve just upgraded from 1.5.1.3 to 1.5.2 in a test blog I have running (www.gnorb.net/wp/) but ran into some problems within the admin panel. When I go to the Presentation tab I see the following:

    Fatal error: Call to a member function on a non-object in /home/virtual/site12/fst/var/www/html/wp/wp-includes/functions.php on line 1491

    This is in the “Themes” part. In the Theme Editor part I get the same error except the entire admin panel goes kaput. (Clicking “back” brings back the admin panel in all of its former glory, sans the Presentation stuff.)

    When I looked at line 1491 here’s what I saw:

    while(($theme_file = $stylish_dir->read()) !== false) {
    if ( $theme_file == ‘style.css’ ) {
    $theme_files[] = $theme_dir . ‘/’ . $theme_file;
    $found_stylesheet = true;
    break;
    }

    Where the “while” line is like 1491. What do I need to fix to get my Presentation panel back? ??

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you first delete the old files before uploading new ? If you did, redo the upgrade.

    Have you checked that all files actually did upload correctly ? Check that none have a filesize of zero.

    Thread Starter gnorb

    (@gnorb)

    Thanks for the help. Problem solved. The problem was a permissions issue, actually. (Urgh… stupid Linux with all its wonderfully stupid security and stupid common sense architecture… “can’t we all just chmod 777 along?”)

    Again, thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress 1.5.1.3 -> 1.5.2 upgrade problem: Presentation tab in admin panel’ is closed to new replies.