• Hi, I am very beginner of wordpress.
    I just installed it today and I wanted to install themes, but I found these problems below:

    Warning: Invalid argument supplied for foreach() in /home/crevenkorea1/wwwhome/wp-admin/theme-install.php on line 31
    Warning: array_keys() expects parameter 1 to be array, boolean given in /home/crevenkorea1/wwwhome/wp-admin/theme-install.php on line 55

    – /home/crevenkorea1/wwwhome/wp-admin/theme-install.php on line 31 is
    foreach ( $installed_themes as $k => $v ) {

    and line 55 is
    ‘installedThemes’ => array_keys( $installed_themes ),

    How should I do solve this problem?
    I think these problems makes admin page unstable.

    I will be waiting for your solutions.

    Thanks.

Viewing 1 replies (of 1 total)
  • Hi,

    Try following suggestions:

    Switching to the default theme by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or or cPanel file manager.

    Resetting the plugins folder by FTP or phpMyAdmin.

    Re-uploading all files & folders – except the wp-content folder, wp-config.php and root .htaccess files – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Hope that helps.
    Thanks,

Viewing 1 replies (of 1 total)

The topic ‘2 errors: Invalid argument supplied for foreach () in~ / array_keys() expects ..’ is closed to new replies.