WordPress.org

Ready to get started?Download WordPress

Forums

Strange error after upgrading to v2.6 (2 posts)

  1. daddyg
    Member
    Posted 6 years ago #

    Hi

    I just upgraded to WP v2.6. I undeleted a bunch of themes that I wasn't using, just leaving my present theme. I then uploaded a new theme that I want to try out but in WP on the Design->Themes Page it doesn't display the theme image under Additional Themes. Instead I get this warning:-

    Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/wp-admin/themes.php on line 98

    Line 98 of themes.php is:-

    foreach ( $table as $row => $cols ) {

    I did a search on the forums here and came across a suggestion at:-
    http://wordpress.org/support/topic/142303?replies=4

    So I tried this:-

    if (is_array($table) || is_object($table))
    foreach ( $table as $row => $cols ) {

    Which gets rid of the warning but doesn't display my new theme under Additional Themes.

    I'd be grateful for any help...thanks,

    Graham

  2. daddyg
    Member
    Posted 6 years ago #

    FYI I uninstalled classic and default themes. I thought reinstalling them might help but I still get the same warning with the unamended themes.php

Topic Closed

This topic has been closed to new replies.

About this Topic