Drupal Association members fund grants that make connections all over the world.
If you use a uri temporary:// is set to : "sites/mysite/private/temp"
-> not a full path !!!
The function "Download Theme" not working.
I receive this error :
Exception: Unable to open in write mode '' in Archive_Tar->_error() (line 635 of /opt/lampp/drupal-local/modules/system/system.tar.inc).
The website encountered an unexpected error. Please try again later.
It is because the fonction"drupal_realpath" used at line 514 return NULL VALUE.
In line 509 : $destination = $destination . '/' . $name . '.tar'
In "drupal_realpath" drupal uses the PHP function realpath, but this function return NULL if the path not exist... Here the filename THEME.tar is not yet create.
Archive_Tar receive a NULL value for the destination.
I have patched the module with this code :
Create a new variable for the tar destination :
$tardest = drupal_realpath($destination) . '/' . $name . '.tar';
$archiver = new Archive_Tar($tardest);
With this modification it works well.