WordPress.org

Ready to get started?Download WordPress

Forums

Problem installing/updating themes/plugins (12 posts)

  1. Old Cow
    Member
    Posted 2 years ago #

    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    What happens if you upload these plugins manually?

  3. Old Cow
    Member
    Posted 2 years ago #

    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.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

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

  5. Old Cow
    Member
    Posted 2 years ago #

    I did this already, before posting this thread.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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?

  7. Old Cow
    Member
    Posted 2 years ago #

    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.

  8. Old Cow
    Member
    Posted 2 years ago #

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

  9. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

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

  10. Old Cow
    Member
    Posted 2 years ago #

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

  11. Old Cow
    Member
    Posted 2 years ago #

    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?

  12. Old Cow
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic