Support » Fixing WordPress » Problem installing/updating themes/plugins

  • I try to install new plugins (doesn’t matter which one) to any WP website on the server from WP admin, and I receive the error:

    Installing Plugin: Empty Tags Remover 1.0
    Downloading install package from http://downloads.wordpress.org/plugin/empty-tags-remover.zip…
    Unpacking the package…

    Installing the plugin…
    Warning: array_keys() expects parameter 1 to be array, boolean given in …/wp-admin/includes/class-wp-upgrader.php on line 189
    The package could not be installed. The plugin contains no files.
    Plugin install failed.Down

    WP is able to download the zip folder into to the …/wp-content/upgrade folder, but then cannot proceed to install it.

    Could it be a WP issue or incompatibility with PHP or MySQL?

    WordPress version 3.3.1
    PHP version 5.3.10
    MySQL version 5.1.61

Viewing 11 replies - 1 through 11 (of 11 total)
  • esmi

    (@esmi)


    Forum Moderator


    What happens if you upload these plugins manually?

    I can activate manually uploaded plugins.

    But I like to fix this, because when a new WP version arrives I am unable to run the update for the database.

    esmi

    (@esmi)


    Forum Moderator


    Try re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress.

    I did this already, before posting this thread.

    esmi

    (@esmi)


    Forum Moderator


    Can you see the zip files in the wp-contents/upload folder? If so, can you check that they do have some real content inside?

    Yes.

    i.e. the Empty Tags Remover folder carries the same files, as when I download the plugin from the WP site: empty-tags-remover.php and readme.txt.

    Could it be that WordPress 3.3.1 is not ready for PHP 5.3.10 or MySQL 5.1.61?

    esmi

    (@esmi)


    Forum Moderator


    No – that’s not the problem but it could be a server issue. PHP may be missing ZipArchive.

    Indeed, it looks like a PHP issue. Where can a find a complete list of PHP modules recommended and required by WP?

    I installed ZipArchive, still can’t install/upgrade plugins from WP admin. In which table/field do I find the login credentials for FTP/SFTP? Maybe we have changed this, and WP does not get the proper access?

    When I include FTP/SSH constants into the wp-config.php

    define(‘FS_METHOD’, ‘ftpext’);
    define(‘FTP_BASE’, ‘/path/to/wordpress/’);
    define(‘FTP_CONTENT_DIR’, ‘/path/to/wordpress/wp-content/’);
    define(‘FTP_PLUGIN_DIR ‘, ‘/path/to/wordpress/wp-content/plugins/’);
    define(‘FTP_USER’, ‘username’);
    define(‘FTP_PASS’, ‘password’);
    define(‘FTP_HOST’, ‘ftp.example.org:21’);

    I am able to install and delete plugins from WP admin now.

    When I install a new plugin, I get stuck with the message:
    Installing Plugin: plugin-name
    Downloading install package from http://downloads.wordpress.org/plugin/plugin-name.zip…

    I can go to Plugins and activate them, but something??? still prohibits finalizing the install. Any idea?

    Do you know where I have to make changes on the server to avoid these constants on all sites?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Problem installing/updating themes/plugins’ is closed to new replies.