I've just upgraded our Opencart to 2.3.0.2 but am experiencing an issue with the image manager.
If I try and create a new folder, or upload an image to the root folder I receive a message stating:
Warning: Directory does not exist!
I can upload images to existing folders just fine.
Having researched this issue I can confirm that I have set Images and all subfolders permissions to 777 and I can confirm that the image folder is correct in my config.php and admin/config.php
I wonder if there's a fundamental issue with the image manager as I can't search within folders either. Whatever I type produces no results.
If I were to reinstall the image manager only, which folders would I need to re-upload?
Not a good thing to do. 777 (world writable) permissions should be used only as a last resort, as they open you up to hacks by anyone sharing your server (they can overwrite your files). Directories are normally 755 and files 644, but you may need to add "write" permission 020 (775/664) if PHP is running in your group, or even 002 (777/666) if PHP is running as a random user. In the latter case, on a shared server it is good practice to change permissions back to 755/644 once you are done uploading files.
If your server is running something like suPHP, PHP is running as owner (you) and you can use the most restrictive permissions. Normally you will get a 500 error if you grant "world writable" permissions, but it's possible that you're either overlooking the error message, or it's being suppressed (and you just see a failure to access the directory). Anyway, try 755 directory permissions, and then 775, before going (temporarily) to 777. If none of that works, you've got some other problem to deal with, such as an incorrectly-specified path.
Check again. Check if you have the path correctlyrhorne wrote: ↑Tue Jun 06, 2017 9:10 pmI believe so, and images wouldn't upload into the existing folders if these were incorrect, would they?rjcalifornia wrote: ↑Tue Jun 06, 2017 7:55 pmAre you sure the path is correct on both config.php files?
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo
I definitely have the correct path. I say definitely because if I change the path, none of the product preview images load when viewing products. The fact that they all load correctly confirms the path is correct.rjcalifornia wrote: ↑Thu Jun 08, 2017 5:57 amCheck again. Check if you have the path correctlyrhorne wrote: ↑Tue Jun 06, 2017 9:10 pmI believe so, and images wouldn't upload into the existing folders if these were incorrect, would they?rjcalifornia wrote: ↑Tue Jun 06, 2017 7:55 pmAre you sure the path is correct on both config.php files?
As per MrPhil, this may be an owner issue. If you have SSH access, log in as that account to store root (public_html or whatever) and where owner is the account owner related to that domain.
It seems whoever upgraded was logged in as a different user.
Code: Select all
chown -R owner:owner *
It seems whoever upgraded was logged in as a different user.
No, the domain account, should be same as cpanel user, also username in path
/home/username/public_HTML or whatever.
If a superuser uploaded the upgrade files for you through ftp, those files and folders that were uploaded will have their ownership. It ties in exactly as root image folder is part of install but subfolders you already created would be your ownership.
It would take your hosting 10 seconds to resolve.
/home/username/public_HTML or whatever.
If a superuser uploaded the upgrade files for you through ftp, those files and folders that were uploaded will have their ownership. It ties in exactly as root image folder is part of install but subfolders you already created would be your ownership.
It would take your hosting 10 seconds to resolve.
Who is online
Users browsing this forum: No registered users and 121 guests