Post by MonaNot » 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.

Newbie

Posts

Joined
Sat Apr 10, 2021 12:14 pm

Post by Elevate » Thu Apr 17, 2025 9:41 pm

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?

ELEV8TE Website Development
Available for hire - please contact me at https://www.elev8tewebsitedevelopment.com/contact
https://www.elev8tewebsitedevelopment.com


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2018 12:40 am
Location - Denver, Colorado, USA

Post by khnaz35 » Thu Apr 17, 2025 11:01 pm

If this is a new site you are building then use OC Version 3.0.4.0

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by ninexus9 » Fri May 02, 2025 2:55 pm

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.
Last edited by ninexus9 on Fri May 02, 2025 7:48 pm, edited 2 times in total.

Newbie

Posts

Joined
Sat Mar 01, 2025 4:22 pm
Location - India
Who is online

Users browsing this forum: No registered users and 2 guests