Hi

I am running 8.0.1 under PHP 5.6 & am trying to update a theme.

During the Update process, I get "Preparing to download the selected updates" then the following error comes up:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=49&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText: 

When I look at the error_log, the following error comes to light (3 times logged consecutively during the Update):

PHP Fatal error: Class 'Drupal\Core\Archiver\ArchiveTar' not found in /home/progres1/public_html/drupal8/core/lib/Drupal/Core/Archiver/Tar.php on line 33

As this is a common operation (updating/adding modules/themes from tar files), then I can only assume it's a local issue to my installation?

I have previously run Upgrade on this site to pull in some data from a production D7 site.

Can anyone please advise a cause/solution??

Many thanks

Andy

--

Comments

fixus971’s picture

Hi I drop in same problem and search everywhere without results.
I also see in log file and find for "lost" Class/File but
now I think that we need some help from an Drupal expert.

I have installed fresh drupal-8.0.3 with profile Origins
I can't update theme

In browser:
Si è verificato un errore HTTP in AJAX.
Codice HTTP di risposta: 500
Di seguito le informazioni di debug.
Percorso: /d/batch?id=16&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText:
-No other info in browser

In php.log I have:
PHP Fatal error: Class 'Drupal\Core\Archiver\ArchiveTar' not found in /home/fixweb/public_html/d/core/lib/Drupal/Core/Archiver/Tar.php on line 33

Note: I have installed Drupal in subdir "/d" on a online site.

Thanks for any suggestion

fixus971’s picture

Technician of site hosting point me to the source of the problem.
Hosting server activate an automatic remove of a file from the server
for a security matter when found "@symlink" in some file.php.

in our case in:
/core/lib/Drupal/Core/Archiver/ArchiveTar.php

if (!@symlink($v_header['link'], $v_header['filename'])) {
$this->_error(
'Unable to extract symbolic link {'
. $v_header['filename'] . '}'
);
return false;
}

Now they tell me to rename @symlink function to prevent deletion but I don't understand well
"@symlink" -> "@sym-xxx"

fixus971’s picture

Now I don't understand well but technician of hosting has renamed code for me as mentioned and now al updates go well.