• Hey guys,

    Very new to wordpress so please forgive any lack of knowledge.
    Resurrecting an old wordpress version of website to replace what is currently live. Successfully installed wordpress locally and imported the old files. Unfortunately, hit a coding bug so nothing from these files (themes, pages, etc) fully loads.
    Was able to identify the source of the issue but no clue how to fix. Any input would be greatly appreciated!

    Error messages:
    Warning: uksort() expects parameter 1 to be array, boolean given in C:\wamp\…\wp-admin\includes\class-wp-themes-list-table.php on line 48
    Warning: array_slice() expects parameter 1 to be array, boolean given in C:\wamp\…\wp-admin\includes\class-wp-themes-list-table.php on line 55

    Here is what the code looks like in the section of the class-wp-themes-list-table.php:

    if ( $this->search || $this->features ) {
    foreach ( $themes as $key => $theme ) {
    if ( !$this->search_theme( $theme ) )
    unset( $themes[ $key ] );
    }
    }

    unset( $themes[$ct->name] );
    uksort( $themes, “strnatcasecmp” );

    $per_page = 24;
    $page = $this->get_pagenum();

    $start = ( $page – 1 ) * $per_page;

    $this->items = array_slice( $themes, $start, $per_page );

    $this->set_pagination_args( array(
    ‘total_items’ => count( $themes ),
    ‘per_page’ => $per_page,
    ) );
    }

    uksort() and array_slice() are the source. I’ve researched a bunch of the forums and found similar issues, but couldn’t identify the right resolution to my problem.
    Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you sure your themes are in the right location wp-content/themes?

    Otherwise your theme might not be compatible with the current WordPress-version.

    Thread Starter DCQuality

    (@dcquality)

    Hey jeffreyvr,

    Thanks big time for that. After investigating the website folder extracted from our archived zip file, it indeed was missing vital php files. I’ve gone back and righted the ship, so no more warning errors and everything (I believe) is where it should be. Thanks big time for pointing out the obvious! (For real, though; that helped sort things out and like I said, pretty new to all this so much appreciated)

    However, now I’m at a point where I have all white screen. This happens every time I access the dashboard (starting immediately after install), and every menu item/sub-item is just white screen. After reading through a bunch of white-screen-of-death forum posts, I still can’t sort out the reason.
    When I manually enter …wp-admin/options.php I’m able to access the general settings, but that’s all I can reap (and even in there, I’m not really sure what to do/if anything will help).
    The options menu does bring up the link to install 4.1, but when I click it it redirects me to dashboard, which is white screen…
    Any ideas? Thanks again for your help!

    Glad I could help.

    This might be caused by a plugin. Deactive your plugins and try again.

    If your white-screen-of-death also appears front-end, maybe the error comes from your theme’s functions.php.

    It always good to check your error-logs. You can mostly find them in your hosting panel or even on your server (otherwise, contact your host).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Debugging: expects parameter 1 to be array, boolean given in…’ is closed to new replies.