Post by OurHooray » Mon Nov 13, 2017 8:45 pm

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

Newbie

Posts

Joined
Mon Nov 13, 2017 8:41 pm

Post by straightlight » Tue Nov 14, 2017 12:07 am

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Tue Nov 14, 2017 12:12 am

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by OurHooray » Tue Nov 14, 2017 2:53 am

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 :)

Newbie

Posts

Joined
Mon Nov 13, 2017 8:41 pm

Post by straightlight » Tue Nov 14, 2017 2:58 am

Not sure what I should do. I can always delete and install again without allowing Opencart to move my storage folder.
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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by OurHooray » Tue Nov 14, 2017 3:20 am

Probably a stupid question but does it matter that the Database I am using is from an old install of the site?

Newbie

Posts

Joined
Mon Nov 13, 2017 8:41 pm

Post by straightlight » Tue Nov 14, 2017 3:22 am

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


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 6 guests