Page 1 of 1

Upgrade from 4.1.0.0 to 4.1.0.3 - Hangs at Applying patches...

Posted: Thu Apr 17, 2025 4:28 am
by MonaNot
The Applying patches hangs. I thought it might be my impatience, but a couple of hours later it's still there.
At that point I just log out of the admin and then back in. The cart then asks me to delete the installation directory, which I do.

Nothing seems to have changed and there are no logs to tell me what happened or in this case didn't . Any suggestions???
OpenCart: 4.1.0.0
MariaDB: 11.4.5
Debian12
PHP: 8.2.28
No extensions or customization.

Re: Upgrade from 4.1.0.0 to 4.1.0.3 - Hangs at Applying patches...

Posted: Thu Apr 17, 2025 9:41 pm
by Elevate
MonaNot wrote:
Thu Apr 17, 2025 4:28 am
The Applying patches hangs. I thought it might be my impatience, but a couple of hours later it's still there.
At that point I just log out of the admin and then back in. The cart then asks me to delete the installation directory, which I do.

Nothing seems to have changed and there are no logs to tell me what happened or in this case didn't . Any suggestions???
OpenCart: 4.1.0.0
MariaDB: 11.4.5
Debian12
PHP: 8.2.28
No extensions or customization.
Did you try re running it again? Have you enabled error display and/or logging to see if anything shows up?

Re: Upgrade from 4.1.0.0 to 4.1.0.3 - Hangs at Applying patches...

Posted: Thu Apr 17, 2025 11:01 pm
by khnaz35
If this is a new site you are building then use OC Version 3.0.4.0

Re: Upgrade from 4.1.0.0 to 4.1.0.3 - Hangs at Applying patches...

Posted: Fri May 02, 2025 2:55 pm
by ninexus9
I had a similar issue. It seems in my case the upgrade progress was stuck at Applying patches... because I had moved and renamed the Storage directory via security modal/popup which appears in admin dashboard.
Note: Make sure to create a backup of your website before trying to implement the instruction given below.
Try to visit your admin dashboard, a popup might appear, informing you about that you have a install directory in root directory. Visit https://yourdomain.com/install/ and you might probably see error like this in the page.

Code: Select all

Warning: fopen(/home4/yourUserName/public\_html/system/storage/logs/error.log): Failed to open stream: No such file or directory in /home4/yourUserName/public\_html/system/library/log.php on line 30

Fatal error: Uncaught TypeError: fclose(): Argument #1 (\$stream) must be of type resource, bool given in /home4/yourUserName/public\_html/system/library/log.php:32 Stack trace: #0 /home4/yourUserName/public\_html/system/library/log.php(32): fclose(false) #1 /home4/yourUserName/public\_html/system/framework.php(32): Opencart\System\Library\Log->\_\_construct('error.log') #2 /home4/yourUserName/public\_html/install/index.php(42): require\_once('/home4/yourUserName...') #3 {main} thrown in /home4/yourUserName/public\_html/system/library/log.php on line 32
While installing upgrades Opencart is unable to open /system/storage/logs/error.log as storage folder no longer exists inside system directory.
Check your config.php and admin/config.php, you will find DIR_STORAGE constant which contains the location of your storage folder. If you can access the terminal then create a symlink of your storage directory. Make sure the name of your symlink is storage and it should be inside the system directory.

Code: Select all

ln -s /home4/yourUserName/ocartdata/storage /home4/yourUserName/public_html/system/storage
Now try to install the upgrades again, the progress will be no longer stuck at Applying patches....
After successful installation, check if everything is working fine (no guarantee about the installed extensions but default opencart features and default opencart extensions should work ), clear cache if needed. Also delete the install folder and make sure to manually delete the created symlink from system folder using FTP or C Panenl's file explorer.