aurel85ro Posted February 14, 2023 Share Posted February 14, 2023 Hi, I am experience an issue trying to update from prestashop 1.7.6.8 to 1.7.8.8 using 1-Click upgrade module The 1-Click upgrade module won't run because the checklist is not complete "Enable maintenance mode and add your maintenance IP " is not checked even though the ship is Maintenance mode. I tried installing previous versions of the model and they all "see" the shop is in maintenance mode but can't update because a newer version of the module exists. Once I update the module I get the "Enable maintenance mode" error again. I tried uninstalling and reinstalling the 1-Click upgrade module several times. Cleared cache for Performance/Clear Cache, deleted cache from var/cache folder. Module version is v4.15.0 Any ideas of what is wrong? Link to comment Share on other sites More sharing options...
juanrojas Posted February 14, 2023 Share Posted February 14, 2023 hello - Did you put your ip in maintenance mode? - try also from the database ps_configuration > PS_SHOP_ENABLE set it to zero 1 Link to comment Share on other sites More sharing options...
aurel85ro Posted February 14, 2023 Author Share Posted February 14, 2023 (edited) If I manually set PS_SHOP_ENABLE to 0 it makes no difference. I in maintenance tab I click add my ip address (it basically ads my PC ip address), when clicking the 1-click upgrade module I get the error: (1/1) OutOfMemoryException Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 8192 bytes) in ConfigurationTest.php line 248 I am using the maximum amount of memory in PHP selector options: 512M Do you think updating needs more memory? If I use previous versions of the 1-click upgrade module the maintenance check is green (ok). Edited February 14, 2023 by aurel85ro (see edit history) Link to comment Share on other sites More sharing options...
juanrojas Posted February 14, 2023 Share Posted February 14, 2023 I had already seen this error in the past, but I don't remember the solution, make a copy of the site and update with a previous version of the module to see if it works for you Link to comment Share on other sites More sharing options...
ComGrafPL Posted February 14, 2023 Share Posted February 14, 2023 (edited) Have you tried to up PHP version, like to 7.4? and retry. Edited February 14, 2023 by ComGrafPL (see edit history) Link to comment Share on other sites More sharing options...
aurel23ro Posted February 14, 2023 Share Posted February 14, 2023 (edited) 20 minutes ago, juanrojas said: I had already seen this error in the past, but I don't remember the solution, make a copy of the site and update with a previous version of the module to see if it works for you This is a copy of the website (I didn't want to risk on actual website). So I can confidently "play" on it. The problem when trying an older version of the 1-Click upgrade module is that when it makes it's check list it requires the latest version of the module so I can't upgrade, even if all other requirements (including maintenance mode) are green. When working with older module version I tried to modify the code in UpgradeButtonBlock.php (eliminating line 139 and 148) so that it will not check for latest version of module but it doesn't work, it still wants to upgrade module before all checklist is green. I have to mention I am not a programmer and the hack presented earlier was found on another forum, but it was related to an earlier version of prestashop (1.6 I think). Maybe I am doing it wrong and if executed correctly would work. Edited February 14, 2023 by aurel23ro (see edit history) Link to comment Share on other sites More sharing options...
aurel23ro Posted February 14, 2023 Share Posted February 14, 2023 5 minutes ago, ComGrafPL said: Have you tried to up PHP version, like to 7.4? and retry. I tried with php vesion 7.4, still doesn't work. With anything newer than that website won't load. Link to comment Share on other sites More sharing options...
aurel23ro Posted February 14, 2023 Share Posted February 14, 2023 I ended up upgrading it manually, it went smoother and easier than I initially thought. Link to comment Share on other sites More sharing options...
marco.luca88 Posted February 15, 2023 Share Posted February 15, 2023 Hi i have the same problem. Each one fix it? Or do you descrive how i can upgrade manuallly step by step (if it’s simply) Link to comment Share on other sites More sharing options...
dehache Posted March 24, 2023 Share Posted March 24, 2023 Hi!! On my side, the problem happens when I add the maintenance IP. If added, the 1-click update module stop working ... and I can not even look at the module, and the server sent me an error 500, If I delete the maintenance IP, the module works again... There's always stupid problems while using this CMS.... 1 Link to comment Share on other sites More sharing options...
yaKay Posted April 6, 2023 Share Posted April 6, 2023 Hi, the issue suppose to be a bug of the "1-click upgrade" module; it's also in PS 8.x.x... the only way is updating PS manually. However, also manual mode upgrade needs an hint: you have to edit the file upgrade.php at lines 47/48/49 because one more "up directory" command is missing: you have to add /.. Best regards. yaKay team 1 Link to comment Share on other sites More sharing options...
Vimarib Posted April 18, 2023 Share Posted April 18, 2023 (edited) Having same problem trying to upgrade to PS8 from PS1.7, maintenance mode not working. Is there any easy way to upgrade from 1.7.8 to 8.0? Any guide or module that works? Thanks Edited April 18, 2023 by coyotemann (see edit history) Link to comment Share on other sites More sharing options...
yaKay Posted April 19, 2023 Share Posted April 19, 2023 18 hours ago, coyotemann said: Having same problem trying to upgrade to PS8 from PS1.7, maintenance mode not working. Is there any easy way to upgrade from 1.7.8 to 8.0? Any guide or module that works? Thanks Hi CM... there r a few paid modules to migrate from the 1.7.x to the 8.x; I didn't find any free one! It's not something you can do so easily by yourself (but that's my opinion) cause DB tables have some differences; you should spend some money buying a migration module or buying a 3rd part software. If you have time and a bit of DB knoledges, you can doing imp/exp of DB tables (from the 1.7 to the 8) but be very careful cause not everything matches 100%. This last solution was what I did for my website! If you want to compare the differences, you can have a look on my ecommerce: yakay.it (ps 1.7.x) and yakay.it/yak8/ (ps 8 with some small working in progress). Link to comment Share on other sites More sharing options...
marco.luca88 Posted April 19, 2023 Share Posted April 19, 2023 Yes but in local all goes good. On Line 1 click upgrade make this error but in local after a module’s upgrade works correctly so i think that if prestashop fix this error we can upgrade free. Link to comment Share on other sites More sharing options...
Vimarib Posted April 19, 2023 Share Posted April 19, 2023 En 14/2/2023 a las 5:52 PM, aurel23ro dijo: I ended up upgrading it manually, it went smoother and easier than I initially thought. How do you do it? manually? Link to comment Share on other sites More sharing options...
kerami82 Posted April 25, 2023 Share Posted April 25, 2023 (edited) I have the same problem :/. 1 click upgrade don't see maintenance mode. When add my IP in maintenance then I have 500 error. When turn on DEBUG mode and try acces to 1-clickupgrade, after 5 minutes I has info like on screenshot Edited April 26, 2023 by kerami82 (see edit history) 1 Link to comment Share on other sites More sharing options...
kerami82 Posted April 26, 2023 Share Posted April 26, 2023 (edited) Hello. In my problem help when I clear cache before update. Edited April 26, 2023 by kerami82 (see edit history) 1 Link to comment Share on other sites More sharing options...
Vimarib Posted April 26, 2023 Share Posted April 26, 2023 hace 18 horas, kerami82 dijo: I have the same problem :/. 1 click upgrade don't see maintenance mode. When add my IP in maintenance then I have 500 error. When turn on DEBUG mode and try acces to 1-clickupgrade, after 5 minutes I has info like on screenshot I will try it in a copy of my shop... Link to comment Share on other sites More sharing options...
Vimarib Posted April 26, 2023 Share Posted April 26, 2023 I do this https://github.com/PrestaShop/autoupgrade/pull/547/files Then add my Ip and then error is fixed, tick the maintenance mode, I can update to 8.0. Thanks Link to comment Share on other sites More sharing options...
prus Posted May 30, 2023 Share Posted May 30, 2023 Hi, i used CLI of the module to upgrade. It went all okey. I just run php cli-upgrade.php --dir=admin-dev --channel=major (You need to change "admin-dev" for your actual admin folder name and run this command in "autoupgrade" module folder throught console) more info on the module github: https://github.com/PrestaShop/autoupgrade Link to comment Share on other sites More sharing options...
STS Posted August 10, 2023 Share Posted August 10, 2023 Running new server with PHP8.1 and Prestashop 8.1. Tried upgrading to PS8.1.1 Auto Upgrade failed with error: Errors [INTERNAL] /var/www/prestashop/modules/autoupgrade/classes/UpgradeTools/Translator.php line 90 - ArgumentCountError: 4 arguments are required, 1 given #0 [internal function]: sprintf() #1 /var/www/prestashop/modules/autoupgrade/classes/UpgradeTools/Translator.php(90): call_user_func_array() #2 /var/www/prestashop/modules/autoupgrade/classes/UpgradeTools/Translator.php(68): PrestaShop\Module\AutoUpgrade\UpgradeTools\Translator->applyParameters() #3 /var/www/prestashop/modules/autoupgrade/classes/ZipAction.php(107): PrestaShop\Module\AutoUpgrade\UpgradeTools\Translator->trans() #4 /var/www/prestashop/modules/autoupgrade/classes/TaskRunner/Upgrade/BackupFiles.php(80): PrestaShop\Module\AutoUpgrade\ZipAction->compress() #5 /var/www/prestashop/admin364rwe1tvcw1heuqmzc/autoupgrade/ajax-upgradetab.php(53): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\BackupFiles->run() #6 {main} ** Noticed it always stopped at one image. Went to more options and turned off backup images and it worked. But it looks like an issue with 1-click upgrade. Link to comment Share on other sites More sharing options...
c64girl Posted October 2, 2023 Share Posted October 2, 2023 Go to: modules/autoupgrade/classes private function checkIsLocalEnvironment() { return in_array($this->getRemoteAddr(), ['127.0.0.1', 'localhost', '[::1]', '::1']); } Change to: private function checkIsLocalEnvironment() { return in_array($this->getRemoteAddr(), ['your.ip.addres.here']); } Link to comment Share on other sites More sharing options...
Prestashop Addict Posted November 21, 2023 Share Posted November 21, 2023 Le 26/04/2023 à 10:31 PM, coyotemann a dit : I do this https://github.com/PrestaShop/autoupgrade/pull/547/files Then add my Ip and then error is fixed, tick the maintenance mode, I can update to 8.0. Thanks I confirm, add your IP, clear cache and all checks passed, and upgrade working fine. Link to comment Share on other sites More sharing options...
marco.luca88 Posted November 21, 2023 Share Posted November 21, 2023 Not for me. If i put ip my site go in 404 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted November 21, 2023 Share Posted November 21, 2023 il y a 1 minute, marco.luca88 a dit : Not for me. If i put ip my site go in 404 Have you an IPV4 or IPV6? Link to comment Share on other sites More sharing options...
marco.luca88 Posted November 21, 2023 Share Posted November 21, 2023 A normal connection. Ip4 Link to comment Share on other sites More sharing options...
aurel85ro Posted February 2 Author Share Posted February 2 On 10/2/2023 at 11:20 AM, c64girl said: Go to: modules/autoupgrade/classes private function checkIsLocalEnvironment() { return in_array($this->getRemoteAddr(), ['127.0.0.1', 'localhost', '[::1]', '::1']); } Change to: private function checkIsLocalEnvironment() { return in_array($this->getRemoteAddr(), ['your.ip.addres.here']); } One year after I opened this topic I had this same issue with another website, and your fix worked. Although I don't think you provided the exact file name that needs to be modified: modules/autoupgrade/classes File: UpgradeSelfCheck.php After I modified as you advised and I filled in my ip address in Maintenance Mode (I think it would work with any IP address), all checks went green and it allowed the store to be upgraded (using version 5.0 of 1-Click Upgrade Module). Link to comment Share on other sites More sharing options...
dozerontop Posted September 25 Share Posted September 25 Hi, Here's what worked for me: I was attempting to upgrade from 1.7.8.10 to 1.7.8.11 and had the "Maintenance Mode" issue. I'm in a multistore context. 1. Made sure all the stores had url's and were activated (in Advanced parameters/Multistore) 2. Used PHP version 7.4 with the site and made sure all the necessary extensions were active 3. Turned off caching and emptied caches both from the backend and manually by ftp 4. Made sure each store was in maintenance mode Then I could update. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now