"ERROR Install Package Not Available"

Hi there, I am trying to install plugins from the WPMU Dev tab but get the error "ERROR Install Package Not Available". In fact, I cannot even post a support ticket from there as the page hangs. If I upload the regular way (i.e. download the plugin, then upload in wordpress plugins) I can do it. I did notice, however, that there are several issues with some of your plugins I tried to install, but with wait to resolve this issue before I post as they might be related.

  • wishtotravel

    Thanks. This is my error log generated the moment I tried to install a plugin from WPMU tab:

    [05-May-2013 17:51:36 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id`) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:37 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:39 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:40 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:41 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:42 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:42 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:45 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:46 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:47 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:47 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:49 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:50 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:52 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:53 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:55 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta
    [05-May-2013 17:51:55 UTC] WordPress database error Multiple primary key defined for query ALTER TABLE wp_i_world_map ADD PRIMARY KEY (id) made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, i_world_map_update_db_check, i_world_map_install, dbDelta`

  • wishtotravel

    @Shawn. I tried disabling the plugin and the problem is still there.

    @Jack. My webhost is iweb.com and I am on a dedicated server. I still cannot find any connection problems in the error logs, though I noticed now that on the Network Admin dashboard things like WordPress Blog, Plugins and Other WordPress News sections are in a constant state of "Loading"

    Regarding the Maps plugin, I will contact the developer but I dont think that is the issue for these problems

  • Shawn

    You might have luck by adding hosts entries for these domains. Open /etc/hosts and add the following lines to the bottom:

    66.135.49.214 api.wpmudev.com
    66.135.49.214 premium.wpmudev.com

    Then try again. This will bypass the DNS lookup for these domains - but if they change their IP address in the future you'll experience this problem again. It's a great step in troubleshooting though, to help figure out exactly where the connection is failing.

  • Shawn

    Good. If this made any difference at all (and it did), that suggests that it is actually an access problem on your server - most likely it's not configured to allow remote POST, so you'll need to ensure that fsockopen or cUrl are enabled on your server. These should be within the PHP configuration in your control panel. This comment might help you configure with it:
    https://premium.wpmudev.org/forums/topic/mpmu-dev-dashboard-api-key-not-working#post-245649

  • wishtotravel

    Hi again Shawn - sorry for being a pain, but cURL is enabled already (cURLSSL to be precise). SO is allow_url_fopen . I never found passthru, exec, popen, proc_open. Anyway, I am guessing the fact that cURL is enabled, then remote POST is not being blocked? I am also basing this assumption on the fact that I have another WP installation on another domain on this server and the dashboard widgets work fine. Also, on this site, the search plugins from the wordpress tabs works and installs. Its only the ones from WPMU which do not.

  • Shawn

    It's possible that it's appearing "enabled" for the site via the control panel, but disabled via the php.ini, or within the vhost configuration, or within the specific PHP engine you're actually running (fcgi, apache, fastcgi, nginx and so on).

    Can you setup a file on your site to obtain phpinfo() then share with us any references to curl that it provides. The file needs to have a php extension and contain only:

    <?php
    phpinfo();
    ?>
  • wishtotravel

    Sure I did that no problem. Here are parts of the results. If you need the entire file could you please send me somewhere to PM you the link as I do not want to post it publicly for security reasons:

    PHP Version 5.3.15
    
    System	Linux host.clktrack2204.com 2.6.18-308.4.1.el5xen #1 SMP Tue Apr 17 17:49:15 EDT 2012 x86_64
    Build Date	Aug 7 2012 03:17:53
    Configure Command	 './configure' '--disable-fileinfo' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--enable-zip' '--prefix=/usr' '--with-curl=/opt/curlssl/' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'
    Server API	CGI/FastCGI
    Virtual Directory Support	disabled
    Configuration File (php.ini) Path	/usr/lib
    Loaded Configuration File	/usr/local/lib/php.ini
    Scan this dir for additional .ini files	(none)
    Additional .ini files parsed	(none)
    PHP API	20090626
    PHP Extension	20090626
    Zend Extension	220090626
    Zend Extension Build	API220090626,NTS
    PHP Extension Build	API20090626,NTS
    Debug Build	no
    Thread Safety	disabled
    Zend Memory Manager	enabled
    Zend Multibyte Support	disabled
    IPv6 Support	enabled
    Registered PHP Streams	https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip
    Registered Stream Socket Transports	tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
    Registered Stream Filters	zlib.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

    and

    curl

    cURL support enabled
    cURL Information 7.24.0
    Age 3
    Features
    AsynchDNS No
    Debug No
    GSS-Negotiate No
    IDN Yes
    IPv6 Yes
    Largefile Yes
    NTLM Yes
    SPNEGO No
    SSL Yes
    SSPI No
    krb4 No
    libz Yes
    CharConv No
    Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, pop3, pop3s, rtsp, smtp, smtps, telnet, tftp
    Host x86_64-unknown-linux-gnu
    SSL Version OpenSSL/0.9.8b
    ZLib Version 1.2.3
    `