4.2.2 > 4.2.3 Upgrade Fails "unable To Decompress File"

Getting these errors

Error Unable to decompress file

Error Failed to extract files from the archive

for what I understand tar is installed to unpack archive, have set all permissions to var/update to 777 to files also.

Can I unpack files manually?

dispatch=tools.phpinfo

Phar-based phar archives enabled

Tar-based phar archives enabled

ZIP-based phar archives enabled

gzip compression enabled

bzip2 compression enabled

Looks like common error and CS-Cart support team knows how to fix it:

http://forum.cs-cart.com/topic/42093-upgrade-failure/

http://forum.cs-cart.com/topic/38162-error-unable-to-decompress-file-when-upgrading-from-415-to-421/

Both suggested threads have no solution.

Both suggested threads have no solution.

I think all of them contacted support team. You can also do it.

Both suggested threads have no solution.

The issue may be caused by the following bug in PHP:

https://bugs.php.net/bug.php?id=69477

Please contact us via Customer Help Desk and provide temporary access to your server by clicking on the Add record link on the Access information page of your Help Desk account so that we could examine the issue.

My php version.

PHP 5.4.45

opened ticket ID: #101369204

My php version.

PHP 5.4.45

opened ticket ID: #101369204

Got it

Already resolved. Thanks

Hello, Same problem - from 4.22 to 4.23

Error Unable to decompress file

Error Failed to extract files from the archive

What is the provided solution, please?

1. Click the Install button and wait for the decompress error to occur.
2. Copy the var/upgrade/uc.tgz file to the var/upgrade/upgrade_4.2.2_ultimate-4.2.3_ultimate.tgz directory and extract it via cPanel.
3. Open the app/controllers/backend/upgrade_center.php file and replace this line:

if (fn_uc_get_package($_REQUEST['package_id'], $_REQUEST['md5'], $package, $uc_settings, $backend_files) == true) {

with this one:

if (1) {

4. Run the upgrade again.
5. Repeat the same steps for each upgrade. The directory on the second step should be changed according to the current version (a new directory will be created automatically after the first step).

Note that this error will not occur starting from version 4.2.4 because upgrade packages have different structure.

Please note, that after you get from 4.2.2 to 4.2.3 you need to revert charge, otherwise cart will not download new uc.tgz update file.

Thanks for your help, Dairus, will try that now.

It seems to be an issue of your PHP configuration. PHar module is not installed. Please check it

No, i did exactly what Darius suggested, and it did helped, i was able to test upgrade to 4.23 and 4.24.

Then i had to undo the changes to be able to upgrade to upper versions