It appears that allow_url_fopen is restricting the copy() command as well:

    * warning: copy() [function.copy]: URL file-access is disabled in the server configuration in /home/.beanor/knaddiso/d6/sites/all/modules/plugin_manager/plugin_manager.module on line 106.
    * warning: copy(ftp://ftp.drupal.org/pub/drupal//files/projects/amazon-6.x-1.0-beta3.tar.gz) [function.copy]: failed to open stream: no suitable wrapper could be found in /home/.beanor/knaddiso/d6/sites/all/modules/plugin_manager/plugin_manager.module on line 106.
    * notice: Undefined offset: 0 in /home/.beanor/knaddiso/d6/sites/all/modules/plugin_manager/plugin_manager.admin.inc on line 244.
    * The md5sum is incorrect for Amazon

I'll have to think more about how to get around this.

Comments

greggles’s picture

To be more clear, that's the error I encounter when I tried to run the "Install" step in the process.

chx’s picture

Well, allow_url_fopen is a php.ini setting. So, you can do an if (!ini_get('allow_url_fopen')) { ask_user_to_switch_isps(); }

Anonymous’s picture

I think that could work quite nicely. Thanks!

greggles’s picture

Status: Active » Needs review
StatusFileSize
new1.59 KB

Yes, but a slightly more friendly thing would be to download the data using drupal_http_request - something like _googleanalytics_cache() does:

chx’s picture

Yeah because you surely will have sockets enabled if allow_url_fopen is not... I recommend ini_get allow_url_fopen first and then falling back to d_h_r. So be prepared to get $result->error = t("The server can't issue HTTP requests"); from d_h_r.

Anonymous’s picture

Assigned: Unassigned »
Status: Needs review » Fixed

Thanks you. We are now using drupal_http_request. :)

Anonymous’s picture

Thanks you. We are now using drupal_http_request. :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.