Jump to content

PS 1.7.0.2 One click upgrade: Error Unable to check md5 files


zumbador

Recommended Posts

  • 2 weeks later...

I guess i got the idea it was working from the following blog post:

 

http://build.prestashop.com/news/prestashop-1703-maintenance-release/

 

"Want to upgrade using the 1-Click Upgrade module? Make sure to upgrade the module itself first! This way you will have access to a new, 1.7-specific channel, which makes upgrading safer for merchants. Upgrading from 1.7.0.0 to 1.7.0.3 should be smooth as silk -- but do a safety backup anyway :)"

Link to comment
Share on other sites

Ok, Found solution, I think.

 

It was indeed the file permissions issue.

 

All autoupdate folders (both in admin/ and modules/) should have chmod 755. Module installs them with 777.

All module files should have 644. Module installs them with 666.

 

My question now is: Why the module installs its own files with wrong permissions?

Link to comment
Share on other sites

how did you install the autoupgrade module on both 1.6 and 1.7?  did you use the same exact procedure to install the module?

 

There are 3 ways to add and install the module.  perhaps you did not do it exactly the same way?

1) download from addons website and upload using FTP

2) download from addons and install using the "add module" button in back office

3) install from the modules listing page in back office?

Link to comment
Share on other sites

For the 1.6 I used "install from the modules listing page in back office".

For the 1.7 I used "download from addons and install using the "add module" button in back office"

 

So both are installed through back office. But the procedure is different indeed.

I will try to test more later.

 

Thanks for reply and Happy New Year :)

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

This is how I managed to upgrade to presta 1.7.0.5 (from 1.7.0.4):

 

 

1) Downloade the 1 Click Update module (version 2.0.4) -> https://addons.prestashop.com/en/data-migration-backup/5496-.html

I had Installed it in my shop.

2) Using Filezilla I went to shop -> admin -> autoupgrate

Here i saw that some files/folders had 0666 and 0777 permisions. I had changed the permisions to 0644 and 0755.

 

3) In admin shop i went to  1-Click Upgrade module

Start Your Update -> More Options (Expert Mode) -> Channel -> * Major release -> Save

Backup Options -> Back up my files and database -> No

                          -> Back up my images -> No -> Save

                           (I recomand doing a backup before, using CPanel/filezilla).

Upgrade options -> Server performance -> Low

                                Disable non-native modules -> No
                                Upgrade the default theme -> Yes
                                Switch to the default theme -> No
                                Keep the default e-mails -> No -> Save
Click on -> Upgrade prestashop now
 
It took a few minutes, and te upgrade was succesfull.
Edited by rl_lucian (see edit history)
  • Like 8
  • Thanks 4
Link to comment
Share on other sites

  • 2 weeks later...

having same issues here, 1.7.0.2 > 1.7.0.5 main problem is the 

 

PrestaShop Original version:

 

Differences between versions:

 

just keep ticking over, no error messages, and no confirmation that the "1 click" has done anything, CHMOD'd everything as stated.

Link to comment
Share on other sites

I can confirm permissions are set by Prestashop to 777 and 666. This never used to happen but now happens regularly. Both installing and upgrading is a pain, not smooth as silk.

 

For example, unpacking zipped 1.7 reveals another zipped file inside. Unpacking that can overwrite your install in the root if you are trying to install a second version as a test store.

 

Unpacked files should be added to a new folder (norm with all zipped files I use from everywhere, including ones I pack for distribution), such as Prestashop 1.7.6, etc. User can then drag them into root if required, or simply rename folder if they want to keep the root tidy because they have other installs at the same level. When you unpack, too many files  are set to 666 permissions, so install won't continue. 

 

Just now, I tried to upgrade 1.7 to latest using 1-click but got the MD error (no indication what's causing it, which would've helped). I then googled and landed here and, sure enough, the dirs in modules > autoupgrade are set to 777, and files to 666

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

So I changed folder and file permissions. 1-Click still throws "Error Unable to check md5 files." I went ahead an clicked Upgrade anyway and all that happens is the button backgrounds are displaced (see attached) --- no upgrade!

post-877408-0-70943100-1489676545_thumb.png

Link to comment
Share on other sites

  • 3 weeks later...

 

This is how I managed to upgrade to presta 1.7.0.5 (from 1.7.0.4):

 

 

1) Downloade the 1 Click Update module (version 2.0.4) -> https://addons.prestashop.com/en/data-migration-backup/5496-.html

I had Installed it in my shop.

2) Using Filezilla I went to shop -> admin -> autoupgrate

Here i saw that some files/folders had 0666 and 0777 permisions. I had changed the permisions to 0644 and 0755.

 

3) In admin shop i went to  1-Click Upgrade module

Start Your Update -> More Options (Expert Mode) -> Channel -> * Major release -> Save

Backup Options -> Back up my files and database -> No

                          -> Back up my images -> No -> Save

                           (I recomand doing a backup before, using CPanel/filezilla).

Upgrade options -> Server performance -> Low

                                Disable non-native modules -> No
                                Upgrade the default theme -> Yes
                                Switch to the default theme -> No
                                Keep the default e-mails -> No -> Save
Click on -> Upgrade prestashop now
 
It took a few minutes, and te upgrade was succesfull.

 

It work

 

thanks

  • Like 2
Link to comment
Share on other sites

I concur, if you have the 1-click upgrade and are having the "MD5 file" problem then just go to your files in C-Panel if you use C-Panel and do the following;

 

 Go to  > admin(xxxxxxxxx) > autoupgrade and in that folder change all folders to 0755 and all files to 0644

 

It will then work fine.

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

Walrus, are you still having the MD5 file problem? or is the upgrade starting but then stalling out?

 

If it stalls out and doesn't finish then try uploading the version (in zip) you are trying to upgrade into the file adminxxxxxx > autoupgrade > download  just clear any other files or folders out of that folder before you start. Once your zip upgrade version is in there go back and try the click upgrade again. Hope this works for you it did on another shop I had that stalled there.

Link to comment
Share on other sites

It went smoothly once I'd set permissions to 755 and 644 in Admin > Autoupgrade. I'd already done it for Modules > Autoupgrade but that wasn't enough.

 

Didn't know about the trick of uploading zip to Autoupgrade dir. Thanks for sharing it.

Link to comment
Share on other sites

Buongiorno , vorrei aggiornare il mio prestashop 1.7.0.5   ad  1.7.1.0 .

Ho seguito l'indicazione di PrestaShop Legend , ma non riesco ad aggiornare.

----------------------------------------------------------

ARCHIVIO LOCALE

Ramo enabled.gif Disponibile
Name: 1.7.1 stable 
MD5 hash: 74b159f239e664f96536857e293c7fc2 
Archivio da usare:

per aggiornare la versione *
Save in the following directory the archive file of the version you want to upgrade to: /admin/autoupgrade/download/
Click "Save" once the archive is there.
This option will skip the download step.
SALVA
 
Confronto delle versioni

PrestaShop versione originale:
warning.gif Error Unable to check md5 files

Differences between versions:

-----------------------------------------------------------------------------

HO SEMPRE IL SEGUENTE ERRORE

 

potreste aiutarmi

grazie in anticipo

Link to comment
Share on other sites

step 2 , dopo aver dato i permessi 755 ho questo sullo schermo

 

Confronto delle versioni

PrestaShop versione originale:
warning.gif 105 file modifications have been detected, including 105 from core and native modules: Visualizzare o nascondere l'elenco

Differences between versions:
warning.gif 4816 files saranno modificati, 868 files saranno cancellati (se trovati) Visualizzare o nascondere l'elenco

 

ma non riesco ad aggiornare

Link to comment
Share on other sites

  • 5 months later...

I concur, if you have the 1-click upgrade and are having the "MD5 file" problem then just go to your files in C-Panel if you use C-Panel and do the following;

 

 Go to  > admin(xxxxxxxxx) > autoupgrade and in that folder change all folders to 0755 and all files to 0644

 

It will then work fine.

 

Hi

 

Yes !  It works like this ! 

i have the message "version non modifiée de PrestaShop:

warning.gif 368 file modifications have been detected, including 304 from core and native modules" 

 

Thanks Energlite ! Youpi

Link to comment
Share on other sites

 

This is how I managed to upgrade to presta 1.7.0.5 (from 1.7.0.4):

 

 

1) Downloade the 1 Click Update module (version 2.0.4) -> https://addons.prestashop.com/en/data-migration-backup/5496-.html

I had Installed it in my shop.

2) Using Filezilla I went to shop -> admin -> autoupgrate

Here i saw that some files/folders had 0666 and 0777 permisions. I had changed the permisions to 0644 and 0755.

 

3) In admin shop i went to  1-Click Upgrade module

Start Your Update -> More Options (Expert Mode) -> Channel -> * Major release -> Save

Backup Options -> Back up my files and database -> No

                          -> Back up my images -> No -> Save

                           (I recomand doing a backup before, using CPanel/filezilla).

Upgrade options -> Server performance -> Low

                                Disable non-native modules -> No
                                Upgrade the default theme -> Yes
                                Switch to the default theme -> No
                                Keep the default e-mails -> No -> Save
Click on -> Upgrade prestashop now
 
It took a few minutes, and te upgrade was succesfull.

 

from

1.7.1.2

to

1.7.2 stable - (1.7.2.2)

in my case the file permission trick in autoupgrade folder fix the unable to ....md5 thing

thanks

Link to comment
Share on other sites

  • 4 weeks later...

Hi

 

Yes !  It works like this ! 

i have the message "version non modifiée de PrestaShop:

warning.gif 368 file modifications have been detected, including 304 from core and native modules" 

 

Thanks Energlite ! Youpi

wORKS

 

Just remember to change permissions of admin folder too, of modules.

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

  • 1 month later...
  • 3 months later...
On 28/2/2017 at 3:49 AM, rl_lucian said:

This is how I managed to upgrade to presta 1.7.0.5 (from 1.7.0.4):

 

 

1) Downloade the 1 Click Update module (version 2.0.4) -> https://addons.prestashop.com/en/data-migration-backup/5496-.html

I had Installed it in my shop.

2) Using Filezilla I went to shop -> admin -> autoupgrate

Here i saw that some files/folders had 0666 and 0777 permisions. I had changed the permisions to 0644 and 0755.

 

3) In admin shop i went to  1-Click Upgrade module

Start Your Update -> More Options (Expert Mode) -> Channel -> * Major release -> Save

Backup Options -> Back up my files and database -> No

                          -> Back up my images -> No -> Save

                           (I recomand doing a backup before, using CPanel/filezilla).

Upgrade options -> Server performance -> Low

                                Disable non-native modules -> No
                                Upgrade the default theme -> Yes
                                Switch to the default theme -> No
                                Keep the default e-mails -> No -> Save
Click on -> Upgrade prestashop now
 
It took a few minutes, and te upgrade was succesfull.

Thank you very much, it helped me a lot!

Link to comment
Share on other sites

Thanks, the 1-click update issue is fixed, this should also fix the 500 Internal Server Error for ajax-upgradetab.php not found

Confirmed just edit permissions inside "adminxxx/autoupgrade" with FillZilla, all folders(include all subfolders) to 755 and all files to 644

Refresh page then all good to go

Link to comment
Share on other sites

  • 1 month later...
On 3.3.2018 at 5:18 AM, Riley said:

Confirmed just edit permissions inside "adminxxx/autoupgrade" with FillZilla, all folders(include all subfolders) to 755 and all files to 644

 

Was working fine for me to update PS 1.7.2.4 to 1.7.3.1

 

 

Link to comment
Share on other sites

On 3/2/2018 at 11:18 PM, Riley said:

Thanks, the 1-click update issue is fixed, this should also fix the 500 Internal Server Error for ajax-upgradetab.php not found

Confirmed just edit permissions inside "adminxxx/autoupgrade" with FillZilla, all folders(include all subfolders) to 755 and all files to 644

Refresh page then all good to go

 

changed permissions and it finally worked, went from 1.7.3.0 to 1.7.3.1

Link to comment
Share on other sites

  • 3 weeks later...
On 2/28/2017 at 9:49 AM, rl_lucian said:

Champion, Absolutely spot on. :ph34r: < PrestaNINJA!

 

This is how I managed to upgrade to presta 1.7.0.5 (from 1.7.0.4):

 

 

1) Downloade the 1 Click Update module (version 2.0.4) -> https://addons.prestashop.com/en/data-migration-backup/5496-.html

I had Installed it in my shop.

2) Using Filezilla I went to shop -> admin -> autoupgrate

Here i saw that some files/folders had 0666 and 0777 permisions. I had changed the permisions to 0644 and 0755.

 

3) In admin shop i went to  1-Click Upgrade module

Start Your Update -> More Options (Expert Mode) -> Channel -> * Major release -> Save

Backup Options -> Back up my files and database -> No

                          -> Back up my images -> No -> Save

                           (I recomand doing a backup before, using CPanel/filezilla).

Upgrade options -> Server performance -> Low

                                Disable non-native modules -> No
                                Upgrade the default theme -> Yes
                                Switch to the default theme -> No
                                Keep the default e-mails -> No -> Save
Click on -> Upgrade prestashop now
 
It took a few minutes, and te upgrade was succesfull.

 

Link to comment
Share on other sites

  • 5 months later...
  • 4 weeks later...
On 2/28/2017 at 2:49 PM, rl_lucian said:

This is how I managed to upgrade to presta 1.7.0.5 (from 1.7.0.4):

 

 

1) Downloade the 1 Click Update module (version 2.0.4) -> https://addons.prestashop.com/en/data-migration-backup/5496-.html

I had Installed it in my shop.

2) Using Filezilla I went to shop -> admin -> autoupgrate

Here i saw that some files/folders had 0666 and 0777 permisions. I had changed the permisions to 0644 and 0755.

 

3) In admin shop i went to  1-Click Upgrade module

Start Your Update -> More Options (Expert Mode) -> Channel -> * Major release -> Save

Backup Options -> Back up my files and database -> No

                          -> Back up my images -> No -> Save

                           (I recomand doing a backup before, using CPanel/filezilla).

Upgrade options -> Server performance -> Low

                                Disable non-native modules -> No
                                Upgrade the default theme -> Yes
                                Switch to the default theme -> No
                                Keep the default e-mails -> No -> Save
Click on -> Upgrade prestashop now
 
It took a few minutes, and te upgrade was succesfull.

 

Thanks done by changing files and folder permission to all files to 0644 and all folder to 0755 in both directories by help of my hosting provider.

1- shop -> admin -> autoupgrade "directory"

2- shop -> modules -> autoupgrade "directory"

Link to comment
Share on other sites

  • 7 months later...
On 2/28/2017 at 4:49 AM, rl_lucian said:

This is how I managed to upgrade to presta 1.7.0.5 (from 1.7.0.4):

 

 

1) Downloade the 1 Click Update module (version 2.0.4) -> https://addons.prestashop.com/en/data-migration-backup/5496-.html

I had Installed it in my shop.

2) Using Filezilla I went to shop -> admin -> autoupgrate

Here i saw that some files/folders had 0666 and 0777 permisions. I had changed the permisions to 0644 and 0755.

 

3) In admin shop i went to  1-Click Upgrade module

Start Your Update -> More Options (Expert Mode) -> Channel -> * Major release -> Save

Backup Options -> Back up my files and database -> No

                          -> Back up my images -> No -> Save

                           (I recomand doing a backup before, using CPanel/filezilla).

Upgrade options -> Server performance -> Low

                                Disable non-native modules -> No
                                Upgrade the default theme -> Yes
                                Switch to the default theme -> No
                                Keep the default e-mails -> No -> Save
Click on -> Upgrade prestashop now
 
It took a few minutes, and te upgrade was succesfull.

If these instructions do not work also check your hosting PHP version and lower to 7.1 (if higher). I was having the same issue as everyone else. For me, these instructions worked in that there were mixed permissions in my admin -> autoupgrade and modules/ folders. Changed all folders to 755 and files to 644 in these 2 folders. After upgrading permissions, The lower section stopped spinning after this, and instead of the error you are reporting showed the files. But the link right above this one was still spinning.  I lowered my hosting PHP version to v7.1 from version 7.2 and then all files showed and I was able to upgrade. Not only check the file permissions but also make sure your PHP version is correct (PHP v7.1 worked for me and v7.2 did not).

My Prestashop upgraded from v1.7.5.1 to 1.7.5.2 with no other issues. Yeah!!

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

  • 3 months later...
  • 5 months later...
On 12/30/2016 at 11:19 PM, Lib_one said:

Ok, Found solution, I think.

 

It was indeed the file permissions issue.

 

All autoupdate folders (both in admin/ and modules/) should have chmod 755. Module installs them with 777.

All module files should have 644. Module installs them with 666.

 

My question now is: Why the module installs its own files with wrong permissions?

This has not helped in anyway. Any other solutions. I have changed all file and folder permissions accordingly but nothing happened.

Link to comment
Share on other sites

  • 2 years later...

I just encountered this issue. Changing all the file permissions didn't work, since one file admin/autoupgrade/ajax-upgradetab.php kept resetting to chmod 666 every time the page refreshed.

I discovered the problem is on line 148 of modules/autoupgrade/AdminSelfUpgrade.php:

                @copy(_PS_ROOT_DIR_ . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $this->autoupgradeDir . DIRECTORY_SEPARATOR . 'ajax-upgradetab.php',
                    $this->autoupgradePath . DIRECTORY_SEPARATOR . 'ajax-upgradetab.php');

This overrides the file with chmod 644 with a new copy with chmod 666.

I fixed the issue by adding the following line after it:

                @chmod($this->autoupgradePath . DIRECTORY_SEPARATOR . 'ajax-upgradetab.php', 0644);

This ensures the file permission is always chmod 644. No more error messages after I did this.

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

  • 1 month later...

I now keep getting this error

SQL 1.7.1.0 1833 in ALTER TABLE `psm4_shop` CHANGE `id_shop` `id_shop` INT(11) NOT NULL AUTO_INCREMENT: Cannot change column 'id_shop': used in a foreign key constraint 'FK_KBGC_CONTENT_SHOP_ID' of table 'kolhabs7_thushinew.psm4_kbgc_html_content'Error during database upgrade. You may need to restore your database.Unknown error

 

How can i fix this?

Screenshot (5).png

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