Skip to content

Instantly share code, notes, and snippets.

@olragon
Created June 10, 2015 14:38
Show Gist options
  • Save olragon/99227e34f019b2951b9c to your computer and use it in GitHub Desktop.
Save olragon/99227e34f019b2951b9c to your computer and use it in GitHub Desktop.
Fix drush simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:72

Fix: drush-ops/drush#894 Super quick, insecure and dirty solution for now. You shouldn't use.

File ./includes/drush.inc, add --no-check-certificate for wget command, --insecure for curl command.

  // ...
  if ($use_wget) {
    drush_shell_exec("wget --no-check-certificate -q --timeout=30 -O %s %s", $destination_tmp, $url);
  }
  else {
    // Force TLS1+ as per https://github.com/drush-ops/drush/issues/894.
    drush_shell_exec("curl --insecure --tlsv1 --fail -s -L --connect-timeout 30 -o %s %s", $destination_tmp, $url);
  }
  // ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment