Jump to content

Error using 1-Click Upgrade


Recommended Posts

Hi Guys,

I'm trying to upgrade from 1.6.0.14 to 1.6.1.0 on my test server using the '1-Click Upgrade' module but keep receiving the following error (screengrab attached):

[Ajax / Server Error for action upgradeDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " "

Does anyone have any idea what the problem could be and how to fix it... i've also tried using the 'local directory' channel but I still get the same error... seems to be something with the database??

Ideas anyone?

DM

 

post-710028-0-88345800-1438188028_thumb.png

Link to comment
Share on other sites

  • 3 weeks later...

Did you solve this problem? I am having the same issue, going from 1.6.0 to 1.6.1, which shouldn't be a stretch:

 

All files upgraded. Now upgrading database...
[Ajax / Server Error for action upgradeDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " "
 
and when I try to rollback I get it again:
 
Database restoration file 000027 done. 32 file(s) left...
[Ajax / Server Error for action restoreDb] textStatus: "error " errorThrown:" " jqXHR: " "
 
thus completely destroying my shop. Luckily I made a manual backup.
Edited by madmartian (see edit history)
Link to comment
Share on other sites

No i'm afraid I didn't, i'm running 1.6.0.14 with the security patch applied so as my shop isn't that out of date I decided to wait until the next release which is supposed to be before the end of August in the hope it may just correct itself.

If you happen to find a fix in the meantime i'd be very grateful if you could let me know.

DM

Link to comment
Share on other sites

Hi Mad Martian,

I've managed to upgrade my store to the latest version of Prestashop 1.6.1.1, here's what worked for me.

1. Make sure you have an up-to-date back up of your site files and database

2. Uninstall all unused modules

3. Disable all used module (Do Not Uninstall Them), if you just disable them you won't lose any settings

4. Install and enable the '1-Click Upgrade Module'

5. Log Out

6. Log In

7. Important: Change the setting in the '1-Click Upgrade' module so that it doesn't back up your files and database)

8. Important: Change the setting in the '1-Click Upgrade' module that say's about disabling non-native modules, you want your modules left as they are)

9. Upgrade using the '1-Click Upgrade' module
10. Log out & clear browser cache

11. Log in and enable the modules you disabled earlier

12. Clear Cache in Advanced Parameters > Performance > Clear Cache

13. Check site and back end operates as expected and turn off Maintenance Mode

Ideally all this should be done on a test site but as long as you've taken a back up of your files and database it should be fine.

Let me know how you get on.

DM

Link to comment
Share on other sites

  • 1 month later...

Hi Guys,

 

I'm trying to upgrade from 1.6.0.14 to 1.6.1.0 on my test server using the '1-Click Upgrade' module but keep receiving the following error (screengrab attached):

 

[Ajax / Server Error for action upgradeDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " "

 

Does anyone have any idea what the problem could be and how to fix it... i've also tried using the 'local directory' channel but I still get the same error... seems to be something with the database??

 

Ideas anyone?

 

DM

 

 

 

This solution worked for me:

 

-> Make a full backup first

-> Download the latest stable Prestashop version

-> Extract the folder

-> Open the folder and you will get 2 subfoders: Prestashop and Install_PrestaShop.html

-> Copy/Paste ONLY the Prestashop subfolder here: /admin/autoupgrade/latest/

-> Go to 1 Click Upgrade module -> On Start your Upgrade field click the button on the right named More options (Expert mode)

-> Go to Expert mode -> Channel -> select Local directory -> write the presta version you are ungradeing to (ex: 1.6.1.1) -> Save

-> On Backup Options field -> Back up my files and database -> select No -> Save

-> On Upgrade Options fiend -> Disable non-native modules -> select No -> Save

-> Check if above settings are made -> then Upgrade the version

 

Link to comment
Share on other sites

I was trying to update from 1.6.0.14 to version 1.6.1.1 and got this ajax  / server error preventing the upgrade. I happened to have a copy of my shop on which I was able to do the upgrade. So I made a diff between these two installations and noticed I had done some experimenting on MySQL engine setting after changing hosting provider. When it was set to MyIsam upgrade failed and when it was InnoDB it succeeded. So I changed the setting to InnoDB in my production site I was able to do the upgrade.

Link to comment
Share on other sites

  • 2 months later...

Hit this error when trying to update PS 1.6.1.2 to version 1.6.1.3

 

[Ajax / Server Error for action upgradeDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " "

 

rl_lucian's solution worked for me:

 

 

 

-> Make a full backup first

-> Download the latest stable Prestashop version

-> Extract the folder

-> Open the folder and you will get 2 subfoders: Prestashop and Install_PrestaShop.html

-> Copy/Paste ONLY the Prestashop subfolder here: /admin/autoupgrade/latest/

-> Go to 1 Click Upgrade module -> On Start your Upgrade field click the button on the right named More options (Expert mode)
-> Go to Expert mode -> Channel -> select Local directory -> write the presta version you are ungradeing to (ex: 1.6.1.1) -> Save
-> On Backup Options field -> Back up my files and database -> select No -> Save
-> On Upgrade Options fiend -> Disable non-native modules -> select No -> Save
-> Check if above settings are made -> then Upgrade the version
 

 

Worked perfectly and would recommend trying it if you have the same problem.

 

David

Link to comment
Share on other sites

  • 4 weeks later...

I believe I have solved this problem. I tried to do a database backup through MySQL on my hosting control panel (not through PrestaShop). I did a backup and restore to a new DB and ended up with only 99 of the 252 tables. I tried it a second time with the same results. It was not giving an error message but was possibly timing out. I increased the timeouts (and a few other limits) in the ini files and the problem went away - and the 1-click upgrade worked flawlessly. 

 

This is overkill, but one of these things fixed the problem.

 

First, there are three ini files, so to be safe I made the same changes in all three files. Those files are:

 

php.ini

php5.ini

.user.ini

 

All are in the HTML root (not the prestashop folder). You likely only need to do this in one place, but I did not want to keep experimenting and don't have the knowledge to know which one to use, so I used all three and made them match. :)  These are the lines I either updated or added:

 

upload_max_filesize = 640M
post_max_size = 640M
max_file_uploads = 200
memory_limit = 320M
max_input_vars = 3000
max_input_time = 600
max_execution_time = 600
set_time_limit = 600

 

It was likely one of the time limit settings, but I increased the size limits as well so I wouldn't have to keep experimenting. Feel free to chime in if any of these are a bad idea. Note that I previously had the timeouts at 300 (5 minutes) and changed them to 600 (10 minutes).

Link to comment
Share on other sites

  • 1 year later...

I had this error today when upgrading from 1.6.1.15 to 1.6.1.16.

 

I tried increasing PHP limits but that didn't work.

 

What worked for me was changing the PHP version in cPanel, from native 7.1 to 5.6 and enable zip extension in PHP extensions.

Hope this helps.

Edited by Coloranti (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

This solution worked for me updating from 1.7.0.4 to 1.7.2.1!!

 

Thanks

 

This solution worked for me:

 

-> Make a full backup first

-> Download the latest stable Prestashop version

-> Extract the folder

-> Open the folder and you will get 2 subfoders: Prestashop and Install_PrestaShop.html

-> Copy/Paste ONLY the Prestashop subfolder here: /admin/autoupgrade/latest/

-> Go to 1 Click Upgrade module -> On Start your Upgrade field click the button on the right named More options (Expert mode)
-> Go to Expert mode -> Channel -> select Local directory -> write the presta version you are ungradeing to (ex: 1.6.1.1) -> Save
-> On Backup Options field -> Back up my files and database -> select No -> Save
-> On Upgrade Options fiend -> Disable non-native modules -> select No -> Save
-> Check if above settings are made -> then Upgrade the version
 

Link to comment
Share on other sites

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...