PrestaShop / PrestaShop

PrestaShop is the universal open-source software platform to build your e-commerce solution.
https://www.prestashop-project.org/
Other
8.17k stars 4.81k forks source link

Try update to the last minor release I've got this error: [Ajax / Server Error for action backupDb] textStatus: "error " errorThrown:" " jqXHR: " " #11225

Closed ballashop closed 5 years ago

ballashop commented 5 years ago

Describe the bug Dear staff, after update the module, see issue #11224 I try to update to the Minor release, but I've got this error: [Ajax / Server Error for action backupDb] textStatus: "error " errorThrown:" " jqXHR: " " Before each operation I backed up the database and the entire site.

To Reproduce Steps to reproduce the behavior:

  1. Go to One Click Upgrade
  2. Choose the minor release (recommended) from 1.6.1.20 to 1.6.1.22
  3. click on update
  4. I've got the error: [Ajax / Server Error for action backupDb] textStatus: "error " errorThrown:" " jqXHR: " "

Before each operation I backed up the database and the entire site.

Screenshots errore-durante-aggiornamento

Additionnal information PrestaShop version: 1.6.1.20 PHP version: 5.5 1-Click Upgrade: 4.4.0

khouloudbelguith commented 5 years ago

Hi @ballashop,

Can you please provide us the log of your upgrade? It can be found in the log.txt file, available in /autoupgrade/tmp/log.txt Thanks!

ballashop commented 5 years ago

Hi @khouloudbelguith where I can find it? Because, into the module/autoupgrade folder I didn't find a tmp folder and I don't have any autoupgrade folder in the main domain path. Thanks to your fast reply.

khouloudbelguith commented 5 years ago

@ballashop, you can find it in the Project_Folder/Admin_folder/autoupgrade/tmp path. Thanks!

ballashop commented 5 years ago

Hi @khouloudbelguith there are sensitive data, can I send you in private way?

khouloudbelguith commented 5 years ago

Hi @ballashop,

This is a public space. You can provide me the log file by email. My address mail: khouloud.belguith@prestashop.com Let's be safe!

Thanks!

ballashop commented 5 years ago

I did, thanks

khouloudbelguith commented 5 years ago

@ballashop, thanks. I just received the e-mail. I will check & feedback.

ballashop commented 5 years ago

Ok, thank you.

khouloudbelguith commented 5 years ago

@ballashop,

In your log file, I have this error (The same that you attached in the screenshot) => [INTERNAL] /XXXXXXXXXXXX/modules/autoupgrade/classes/UpgradeTools/Translator.php line 90 - sprintf(): Too few arguments. @Quetzacoalt91 what do you think? Thanks!

ballashop commented 5 years ago

@khouloudbelguith @Quetzacoalt91 does this error affect to the site? now it's in the maintenance state, can I show it again? Or should I restore the site and database backup? Thanks for your support.

ballashop commented 5 years ago

Hi @khouloudbelguith of course, I do immediately thanks

Quetzacoalt91 commented 5 years ago

@ballashop no need to restore anything. If the process failed at the step backupDb, nothing has been changed on the shop. You can directly disable the maintenance mode.

I'll have a look at this Translator issue, it could be related to the latest release.

ballashop commented 5 years ago

@Quetzacoalt91 thanks for your reply. Tomorrow, I will put the site under maintenance and try to update again. I'm waiting your next kind response. Thanks a lot. Best regard

Quetzacoalt91 commented 5 years ago

The translation issue seems unrelated. You should check the server logs if you can access them. This error could be cause by a storage or memory issue, a rule by your hosting provider which prevents to use too many CPU, I/O resources...

Could you please have a look at your server logs? If the scripts stop without providing details, there is nothing I can do.

ballashop commented 5 years ago

Hi @Quetzacoalt91, I immediately ask to the hosting service to get more information. I hope to receive assistance asap. Thanks

ballashop commented 5 years ago

Dear @khouloudbelguith @Quetzacoalt91 the hosting service found this error: Fatal error: Call to undefined method AdminSelfUpgrade::displayErrors() in xxAdminxxFolderxx/functions.php on line 281 They said that the one click module needs updating, so I clicked on reset (one click module) and I've got this warning: 2 errors The module can not be installed. This version of 1-click upgrade requires PHP 5.6 to work properly. Please upgrade your server configuration. aggiornare-modulo-one-click In the fact we use a php 5.5 version. So we asked to the hosting server if we can upgrade the php version. Is it possible that these errors are due to the php version not adequate? I'm waiting your kind response. Thanks a lot.

khouloudbelguith commented 5 years ago

Hi @ballashop,

Just for your information, we recommend that you run your PrestaShop install on the latest version of PHP. PrestaShop 1.7.0 to 1.7.3 is compatible with PHP 7.1 and PrestaShop 1.7.4 is compatible with PHP 7.2. Thanks!

ballashop commented 5 years ago

Hi @khouloudbelguith, yes we know but at the moment we have decided to continue using version 1.6, until the update is available. Do you think it is enough to switch to the php 5.5 version? The server assistance service told us that we can. I'm waiting your kind response. Thanks a lot.

khouloudbelguith commented 5 years ago

@Quetzacoalt91, what do think? Thanks!

ballashop commented 5 years ago

Hi @khouloudbelguith @Quetzacoalt91 sorry, I meant the php version 5.6 and not the 5.5 that is currently in use. Thank you so much.

Quetzacoalt91 commented 5 years ago

Yep, PHP 5.6 is the minimum version which allows you to use the upgrade module. Older versions are not compatible.

ballashop commented 5 years ago

Hi @Quetzacoalt91 thanks, we upgrading the php to the 5.6 version. do you think that the error as in this issue may depend on the obsolete version of PHP? Thanks.

Quetzacoalt91 commented 5 years ago

It could be, yes. We check the version of PHP at the module installation since the v4.4.0. I guess it was already installed on your shop, and upgrading the module to the version 4.4.0 made you miss the error. :)

ballashop commented 5 years ago

Hi @khouloudbelguith @Quetzacoalt91, I try to upgrade a php version but the server displayed a database connection error. I have forwarded this error to customer service on the server. I will keep you updated, thanks.

ballashop commented 5 years ago

Hi @khouloudbelguith @Quetzacoalt91 the error is not there anymore but I have not had time to update yet, today there is a new 1.6.1.23. I have meanwhile changed the php version to 5.6 and updated the one click module. I hope to be able to backup and update to the latest release soon. Thanks

ballashop commented 5 years ago

Hi @khouloudbelguith @Quetzacoalt91 , unfortunately I still was not able to do the update, the error is similar: [Ajax / Server Error for action backupFiles] textStatus: "error" errorThrown: "" jqXHR: "" this time instead of backupDb is backupFiles. I have also opened a ticket to the server customer service.

errore aggiornamento

some info about the server

Thanks for any reply.

ballashop commented 5 years ago

Hi, I tried to do the update again, this time the system came up to the backup of the DB tables, but it stopped for about 30 minutes on Database backup: 234 tables left ... displaying this error: [Ajax / Server Error for action backupDb] textStatus: "error" errorThrown: "" jqXHR: "" errore-backupdb-02

Thanks for any reply.

ballashop commented 5 years ago

hi @khouloudbelguith @Quetzacoalt91, we believe that the problem is of the server, the assistance advises us to make backups and update manually. I've always done everything via one click module, do you have any suggestions for that manual? Thanks

khouloudbelguith commented 5 years ago

Hi @ballashop, you can follow this link: https://devdocs.prestashop.com/1.7/basics/keeping-up-to-date/ for more details about to upgrade Prestashop. Thanks!

ballashop commented 5 years ago

Hi @khouloudbelguith, sorry form my late, thanks a lot for the link. I'm going to read. Thanks again.

khouloudbelguith commented 5 years ago

Hi @ballashop,

You are welcome! So, can I close this issue?

ballashop commented 5 years ago

Hi @khouloudbelguith, can I re-open if I didn't find a solution? Thanks a lot.

khouloudbelguith commented 5 years ago

@ballashop, that's ok, this issue is still open. Waiting for your feedback.

ballashop commented 5 years ago

Hi @khouloudbelguith, thanks, about the link you wrote before, there is a paragraph that I didn't understand well. I mean this: Note about vendor folder. honestly I did not understand which folder refers to the "vendor" one. I ask you the courtesy to give me directions please. Thanks.

khouloudbelguith commented 5 years ago

@ballashop, you can find the vendor folder under you Project_Folder/vendor. image Thanks!

ballashop commented 5 years ago

Hi @khouloudbelguith I didn't find this folder, we don't have any "vendor" folder into the main project path. Maybe is it in the update package? I'm waiting your kind response. Thanks

khouloudbelguith commented 5 years ago

@ballashop, yes, this folder exists only in the PSv1.7, it doesn't exist in the PS1.6. Thanks!

ballashop commented 5 years ago

Ok, thanks, but we need to update to a latest version of 1.6 from 1.6.1.20 to 1.6.1.23 WE are not ready to change to 1.7 sorry. That paragraph is not useful for updating version 1.6, is'n it? Thanks

khouloudbelguith commented 5 years ago

@ballashop, There are two ways to upgrade PrestaShop1.6:

For more information you can follow this documentation: http://doc.prestashop.com/display/PS16/Updating+PrestaShop Thanks!

ballashop commented 5 years ago

Ok, but the link you wrote before: https://devdocs.prestashop.com/1.7/basics/keeping-up-to-date/upgrade/ is it just for 1.7? Thanks

khouloudbelguith commented 5 years ago

ping @Quetzacoalt91

Quetzacoalt91 commented 5 years ago

Yes, these explanations are also valid on PrestaShop 1.6 and older versions.

ballashop commented 5 years ago

hi, @Quetzacoalt91 @khouloudbelguith, thanks I'm going to try. I will contact you as soon as I have more info. Thanks a lot

khouloudbelguith commented 5 years ago

@ballashop, Thanks! Waiting for your feedback.

ballashop commented 5 years ago

the local upgrade test with MAMP was successful by one click module, which means that the problem lies with the online server. Thanks

khouloudbelguith commented 5 years ago

@ballashop, so in your local, the issue is solved?

ballashop commented 5 years ago

HI @khouloudbelguith @Quetzacoalt91, at this point I think so. thanks for your patience.

khouloudbelguith commented 5 years ago

@ballashop, It seems that your issue is not a PrestaShop's core bug but most likely a server configuration or customization problem. I close the issue, feel free to open a new one when needed. Thanks!