Jump to content

1 click upgrade - Unable to open zipFile


Recommended Posts

Hi

 

I have the green light on everything in the pre-check for the 1 click upgrade, when I go to upgrade.

I get the error 'Unable to open zipFile' and then the path to the Prestashop.zip in the 'autoupgrade/download/' directory. I have zip installed on the server, any ideas as to why this is happening - is there a manual work-around?

 

Many thanks in advance to anyone able to shed some light on this problem.

  • Like 1
Link to comment
Share on other sites

Hello

 

Is there anybody out there?

 

One loyal PS user being ignored here!

 

Sorry to sound bossy but, surely one of the most important features with any Cart should be the ability to upgrade with a degree of ease, especially considering that this is the one thing that is going to need to take place over time on a regular basis - I will ask again. Is there a manual workaround because of the automatic upgrade failing or does the whole thing come to a grinding halt?

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Hi all!

 

I have the same problem with the auto upgrade plugin.

My presta version is: 1.4.3

I want to upgrade to: 1.5.1.0

1-click plugin version is: 0.8.9

 

I've already found the manual upgrade description here, but honestly, I prefer the auto upgrade over the manual hacks.

 

 

Any help would be appreciated.

 

Best Regards,

Tushee

Link to comment
Share on other sites

 

"The best place in the world to ask questions about Prestashop and get advice from our passionate community"

Your words, not mine!

I am beginning to doubt it!

Backing up the whole website and upgrading with some kind of ease are without the two biggest omissions fro PS.

They are also the two biggest and most important things to have right, they are also the two things, that we who have chosen

to use PS, will be doing (or should be doing) on a regular basis.

Yet they are either missing or the weakest link in the chain.

Come on guys - lets remove a couple of the worst deficiencies - I have web designers moving away because of this nightmare !

It is something if we are to be 'good PS citizens' we are all going to have through. It lets the rest of your great software down.

 

Link to comment
Share on other sites

Hi amanuensis!

 

I've found a fix for this issue.

In the module you downloaded there is file: AdminSelfUpgrade.php

In this file if you set the

public static $force_pclZip

variable in row 341 to true, it will force the plugin to use it's own zip library instead of the ZipArchive.

I don't know why the ZipArchive don't work, but with the pclZip everything is fine.

It's already unzipped the archive and made a backup for me. I hope there will be no more problems.

 

Hope it will help for you too ;)

 

Best Regards,

Tushee

Edited by Tushee (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Hi

 

I have tried the suggestion from Tushee and PS seems to have upgraded, although the line of code is on 314 ad not 341

also it seems that the change only attends to the 'unzipping' of the initial upgraded zip file - as you can see below there is a plethora of error messages relating to the unzipping of modules:

 

In the admin it tells me that it is now 1.5.2 - in the front end of the shop all the images associated with the products are not showing:

 

Even when I upload a fresh image for a product it does not bring the new image up - any ideas please.

 

 

 

[ERROR] /modules/autoupgrade/ has not been unzipped

 

[ERROR] /modules/autoupgrade/db/ has not been unzipped

 

[WARNING] error when trying to upgrade module autoupgrade.

 

[ERROR] /modules/autoupgrade/ has not been unzipped

 

[ERROR] /modules/autoupgrade/db/ has not been unzipped

 

[WARNING] error when trying to upgrade module autoupgrade.

 

[ERROR] /modules/cashondelivery/ has not been unzipped

 

[WARNING] error when trying to upgrade module cashondelivery.

 

[ERROR] /modules/cashondelivery/ has not been unzipped

 

[WARNING] error when trying to upgrade module cashondelivery.

 

[ERROR] /modules/paypal/ has not been unzipped

 

[ERROR] /modules/paypal/upgrade/ has not been unzipped

 

[ERROR] /modules/paypal/css/ has not been unzipped

 

[ERROR] /modules/paypal/views/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/back/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/back/admin_order/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/front/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/front/integral_evolution/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/front/payment/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/front/express_checkout/ has not been unzipped

 

[ERROR] /modules/paypal/mails/ has not been unzipped

 

[ERROR] /modules/paypal/mails/en/ has not been unzipped

 

[ERROR] /modules/paypal/mails/es/ has not been unzipped

 

[ERROR] /modules/paypal/mails/fr/ has not been unzipped

 

[ERROR] /modules/paypal/mails/de/ has not been unzipped

 

[ERROR] /modules/paypal/mails/it/ has not been unzipped

 

[ERROR] /modules/paypal/controllers/ has not been unzipped

 

[ERROR] /modules/paypal/controllers/front/ has not been unzipped

 

[ERROR] /modules/paypal/integral_evolution/ has not been unzipped

 

[ERROR] /modules/paypal/api/ has not been unzipped

 

[ERROR] /modules/paypal/js/ has not been unzipped

 

[ERROR] /modules/paypal/img/ has not been unzipped

 

[ERROR] /modules/paypal/img/logos/ has not been unzipped

 

[ERROR] /modules/paypal/img/logos/express_checkout_mobile/ has not been unzipped

 

[ERROR] /modules/paypal/img/default_logos/ has not been unzipped

 

[ERROR] /modules/paypal/img/bo-cards/ has not been unzipped

 

[ERROR] /modules/paypal/express_checkout/ has not been unzipped

 

[ERROR] /modules/paypal/backward_compatibility/ has not been unzipped

 

[WARNING] error when trying to upgrade module paypal.

 

[ERROR] /modules/paypal/ has not been unzipped

 

[ERROR] /modules/paypal/upgrade/ has not been unzipped

 

[ERROR] /modules/paypal/css/ has not been unzipped

 

[ERROR] /modules/paypal/views/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/back/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/back/admin_order/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/front/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/front/integral_evolution/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/front/payment/ has not been unzipped

 

[ERROR] /modules/paypal/views/templates/front/express_checkout/ has not been unzipped

 

[ERROR] /modules/paypal/mails/ has not been unzipped

 

[ERROR] /modules/paypal/mails/en/ has not been unzipped

 

[ERROR] /modules/paypal/mails/es/ has not been unzipped

 

[ERROR] /modules/paypal/mails/fr/ has not been unzipped

 

[ERROR] /modules/paypal/mails/de/ has not been unzipped

 

[ERROR] /modules/paypal/mails/it/ has not been unzipped

 

[ERROR] /modules/paypal/controllers/ has not been unzipped

 

[ERROR] /modules/paypal/controllers/front/ has not been unzipped

 

[ERROR] /modules/paypal/integral_evolution/ has not been unzipped

 

[ERROR] /modules/paypal/api/ has not been unzipped

 

[ERROR] /modules/paypal/js/ has not been unzipped

 

[ERROR] /modules/paypal/img/ has not been unzipped

 

[ERROR] /modules/paypal/img/logos/ has not been unzipped

 

[ERROR] /modules/paypal/img/logos/express_checkout_mobile/ has not been unzipped

 

[ERROR] /modules/paypal/img/default_logos/ has not been unzipped

 

[ERROR] /modules/paypal/img/bo-cards/ has not been unzipped

 

[ERROR] /modules/paypal/express_checkout/ has not been unzipped

 

[ERROR] /modules/paypal/backward_compatibility/ has not been unzipped

 

[WARNING] error when trying to upgrade module paypal.

 

[ERROR] /modules/themeinstallator/ has not been unzipped

 

[ERROR] /modules/themeinstallator/export/ has not been unzipped

 

[ERROR] /modules/themeinstallator/import/ has not been unzipped

 

[WARNING] error when trying to upgrade module themeinstallator.

 

[ERROR] /modules/themeinstallator/ has not been unzipped

 

[ERROR] /modules/themeinstallator/export/ has not been unzipped

 

[ERROR] /modules/themeinstallator/import/ has not been unzipped

 

[ERROR] /modules/themeinstallator/backward_compatibility/ has not been unzipped

 

[WARNING] error when trying to upgrade module themeinstallator.

Link to comment
Share on other sites

I have used the rollback and it failed - couldn't unzip the original version of PS that 1.5.2 was supposed to replace - so I changed the 'public static $force_pclZip = true;' back to false and again it failed - I returned it to 'true' for a second time and it seems to have rolled-back.

Images have returned and also the animation at checkout (select a product and it floats to cart animation)

It is certainly not 1 click upgrade - all my boxes had a 'green tick' for go before I proceeded with any of this - I did all that was requested yet this mess occurs, it really isn't good enough. I have become a fan of PS since its inception, but this hugely important step of upgrading as well as a professional back up scenario to somewhere like Amazon S3 should, I feel, be at the top of your list of glaring omissions to fill. I have a really slick plug-in installed in all of my Wordpress sites that backs up to Amazon S3, it works like a dream, and I can sleep at night. For all the ease PS offers, this negates it all.

 

I hope the above info helps to get a solution to this, as i now have the old version in place and am left wondering how to upgrade - is there a manual way of doing this with concise instructions?

Link to comment
Share on other sites

Hi, I had the same problème. I had already upgraded one site with succes. Only difference was server. Problem site on a Debian Lenny. I copied the site accross to a Debian squeeze server and the upgrade worked fin.

 

Good server (from Advanced parameters, Configuration information):

Server information: Linux #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64

Server software version: Apache/2.2.16 (Debian)

PHP version: 5.3.3-7+squeeze14

Memory limit: 128M

Max execution time: 30

Bad server :

 

Prestashop version: 1.5.0.13

Server information: Linux #1 SMP Wed Sep 21 03:36:44 UTC 2011 x86_64

Server software version: Apache/2.2.9 (Debian) DAV/2 PHP/5.2.6-1+lenny16 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2008-08-11) mod_ssl/2.2.9 OpenSSL/0.9.8g

PHP version: 5.2.6-1+lenny16

 

Hope that helps, Thomas

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...