I have just done a fresh install of Opencart 3. Once installed I received a popup advising to move the storage folder for security reason. I agreed and the change was automatically made. Now when I try to upload any image I receive a popup saying: Warning: Directory does not exist!
I have checked the config.php and admin/config.php and it shows:
// DIR
define('DIR_APPLICATION', '/home/ourhoora/public_html/catalog/');
define('DIR_SYSTEM', '/home/ourhoora/public_html/system/');
define('DIR_IMAGE', '/home/ourhoora/public_html/image/');
define('DIR_STORAGE', '/home/ourhoora/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
Any ideas how to resolve this issue? Many thanks. Chris
I have checked the config.php and admin/config.php and it shows:
// DIR
define('DIR_APPLICATION', '/home/ourhoora/public_html/catalog/');
define('DIR_SYSTEM', '/home/ourhoora/public_html/system/');
define('DIR_IMAGE', '/home/ourhoora/public_html/image/');
define('DIR_STORAGE', '/home/ourhoora/storage/');
define('DIR_LANGUAGE', DIR_APPLICATION . 'language/');
define('DIR_TEMPLATE', DIR_APPLICATION . 'view/theme/');
define('DIR_CONFIG', DIR_SYSTEM . 'config/');
define('DIR_CACHE', DIR_STORAGE . 'cache/');
define('DIR_DOWNLOAD', DIR_STORAGE . 'download/');
define('DIR_LOGS', DIR_STORAGE . 'logs/');
define('DIR_MODIFICATION', DIR_STORAGE . 'modification/');
define('DIR_SESSION', DIR_STORAGE . 'session/');
define('DIR_UPLOAD', DIR_STORAGE . 'upload/');
Any ideas how to resolve this issue? Many thanks. Chris
This is probably due to FTP file uploads by queue rather than deflating files from the host file manager console from the Opencart ZIP file. Use the extract mode from your file manager, it is way quicker as all files and folders will exist. In addition, ensure to follow the install.txt file from the root directory on the ZIP file to assign proper and recursive permissions to the instructed folders.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In addition, on Github, replace the following files on your server with these:
- https://github.com/opencart/opencart/bl ... anager.php
- https://github.com/opencart/opencart/bl ... nager.twig
- https://github.com/opencart/opencart/bl ... /common.js
and see if that resolves the issue after clearing all caches from the admn dashboard and the admin - > extensions - > modifications - > refresh button.
- https://github.com/opencart/opencart/bl ... anager.php
- https://github.com/opencart/opencart/bl ... nager.twig
- https://github.com/opencart/opencart/bl ... /common.js
and see if that resolves the issue after clearing all caches from the admn dashboard and the admin - > extensions - > modifications - > refresh button.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thank you very much for taking the time to respond to me. I have checked all file permissions for the files listed in the install text file and all have been given full Read/Write permissions. I have updated the three files you linked me to on GitHub aswell but the issue is still present. Now when I try to upload an image it doesn't even bring up the file manager :s
Not sure what I should do. I can always delete and install again without allowing Opencart to move my storage folder.
Any other ideas? Thanks again
Not sure what I should do. I can always delete and install again without allowing Opencart to move my storage folder.
Any other ideas? Thanks again

That would be a great start. Test on a virtual server or separate live server folder with new database and also test with different browsers to see if this issue can be reproduced.Not sure what I should do. I can always delete and install again without allowing Opencart to move my storage folder.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Always best to try from a fresh one in order to gather all information between a fresh installation and an already installed store with its database.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
one solution is
https://stackoverflow.com/questions/494 ... 1#49733671
https://stackoverflow.com/questions/494 ... 1#49733671
my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com
Who is online
Users browsing this forum: No registered users and 6 guests