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.