Forums

WordPress 1.5.1.3 -> 1.5.2 upgrade problem: Presentation tab in admin panel (3 posts)

  1. gnorb
    Member
    Posted 6 years ago #

    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

  2. Mark (podz)
    Support Maven
    Posted 6 years ago #

    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.

  3. gnorb
    Member
    Posted 6 years ago #

    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 :-D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags