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.
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?MonaNot wrote: ↑Thu Apr 17, 2025 4:28 amThe 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.
ELEV8TE Website Development
Available for hire - please contact me at https://www.elev8tewebsitedevelopment.com/contact
https://www.elev8tewebsitedevelopment.com
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
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.
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.
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.
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.Note: Make sure to create a backup of your website before trying to implement the instruction given below.
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
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
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.
Who is online
Users browsing this forum: No registered users and 2 guests