After a crash and a full restore I have a working store again EXCEPT for some reason I cannot access any of the images or image subdirectories. Every image placement throughout the store is blank.
The Image Manager only shows me the 5 icons of the parent screen. (up,refresh,upload,folder,delete)
If I attempt to upload a new image I get the message 'Warning: Directory does not exist!' I get the same message if I try to add a new subfolder (whether it already exists or not).
My first though was the config for DIR_IMAGE was wrong but it appears to address the subfolder holding the store correctly.
e.g.
define('DIR_SYSTEM', '/public_html/myCompany/store/system/');
define('DIR_IMAGE', '/public_html/myCompany/store/image/');
I know all the images are still there in their correct image subfolders as any access using normal html works fine.
Could someone please help me to understand what is happening here.
(FYI OC version 3.0.3.7 PHP 7.4.10 mySQL 5.6.32)
Thank you
Derek
Solved, thanks to xxvirusxx. Fix involved changing hosting links.
The Image Manager only shows me the 5 icons of the parent screen. (up,refresh,upload,folder,delete)
If I attempt to upload a new image I get the message 'Warning: Directory does not exist!' I get the same message if I try to add a new subfolder (whether it already exists or not).
My first though was the config for DIR_IMAGE was wrong but it appears to address the subfolder holding the store correctly.
e.g.
define('DIR_SYSTEM', '/public_html/myCompany/store/system/');
define('DIR_IMAGE', '/public_html/myCompany/store/image/');
I know all the images are still there in their correct image subfolders as any access using normal html works fine.
Could someone please help me to understand what is happening here.
(FYI OC version 3.0.3.7 PHP 7.4.10 mySQL 5.6.32)
Thank you
Derek
Solved, thanks to xxvirusxx. Fix involved changing hosting links.
Last edited by Chulain on Sun Jun 20, 2021 3:28 am, edited 1 time in total.
Sounds to me like it could be the Unix file permissions.
Files should be 644, folders should be 755.
Files should be 644, folders should be 755.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Recursive mode.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
@ paulfeakins
Thanks for your response. That fits the scenario perfectly. But:
I tried to provide as much info as I could, but forgot to mention that I had tried changing the permissions, all options from 644 up to 777 without having any effect.
Note: I believe if permissions were wrong I would not be able to access via simple html code such as :
https://www.dofacs.ca/calendars.html
One image is at https://www.dofacs.ca/shop/image/catalo ... db_spt.jpg
Thanks for your response. That fits the scenario perfectly. But:
I tried to provide as much info as I could, but forgot to mention that I had tried changing the permissions, all options from 644 up to 777 without having any effect.
Note: I believe if permissions were wrong I would not be able to access via simple html code such as :
https://www.dofacs.ca/calendars.html
One image is at https://www.dofacs.ca/shop/image/catalo ... db_spt.jpg
Have you tried from FTP?Chulain wrote: ↑Wed Jun 16, 2021 8:17 pm@ paulfeakins
Thanks for your response. That fits the scenario perfectly. But:
I tried to provide as much info as I could, but forgot to mention that I had tried changing the permissions, all options from 644 up to 777 without having any effect.
Note: I believe if permissions were wrong I would not be able to access via simple html code such as :
https://www.dofacs.ca/calendars.html
One image is at https://www.dofacs.ca/shop/image/catalo ... db_spt.jpg
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
@ straightlight
I have no problems with FTP (using Filezilla).
e.g. drilling down through sub-directories of the image folder to
/public_html/Dofacs/shop/image/catalog/Dofacs/calendars/hummingbirds
I can access an image (ch_spt.jpg) which has been in that folder since 2013
It is only the rebuilt OC which is giving me a headache.
This is weird, eh?
I have no problems with FTP (using Filezilla).
e.g. drilling down through sub-directories of the image folder to
/public_html/Dofacs/shop/image/catalog/Dofacs/calendars/hummingbirds
I can access an image (ch_spt.jpg) which has been in that folder since 2013
It is only the rebuilt OC which is giving me a headache.
This is weird, eh?
There's nothing wrong with OC as long as you have the right defined image path and the recursive permission folders set to CHMOD 0755. The file permissions should not be changed.Chulain wrote: ↑Thu Jun 17, 2021 5:59 am@ straightlight
I have no problems with FTP (using Filezilla).
e.g. drilling down through sub-directories of the image folder to
/public_html/Dofacs/shop/image/catalog/Dofacs/calendars/hummingbirds
I can access an image (ch_spt.jpg) which has been in that folder since 2013
It is only the rebuilt OC which is giving me a headache.
This is weird, eh?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
And in config you have?
Code: Select all
define('DIR_IMAGE', '/home/username_from_cpanel/public_html/Dofacs/shop/image/');
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
@straightlight
definitely all folders are 755, all files are 644
@xxvirusxx
Yes, the four definitions in both config and admin/ config follow the following structure
define('DIR_APPLICATION', '/home/users/web/derek/public_html/Dofacs/shop/catalog/');
define('DIR_SYSTEM', '/home/users/web/derek/public_html/Dofacs/shop/system/');
define('DIR_IMAGE', '/home/users/web/derek/public_html/Dofacs/shop/image/');
define('DIR_STORAGE', '/home/users/web/derek/public_html/Dofacs/shop/storage/');
Only the image access seems to be a problem.
I am at a loss.
It looks as though I am going to have to rebuild the site from scratch. Bummer.
Thanks for the help anyway guys.
definitely all folders are 755, all files are 644
@xxvirusxx
Yes, the four definitions in both config and admin/ config follow the following structure
define('DIR_APPLICATION', '/home/users/web/derek/public_html/Dofacs/shop/catalog/');
define('DIR_SYSTEM', '/home/users/web/derek/public_html/Dofacs/shop/system/');
define('DIR_IMAGE', '/home/users/web/derek/public_html/Dofacs/shop/image/');
define('DIR_STORAGE', '/home/users/web/derek/public_html/Dofacs/shop/storage/');
Only the image access seems to be a problem.
I am at a loss.
It looks as though I am going to have to rebuild the site from scratch. Bummer.
Thanks for the help anyway guys.
Check both your OpenCart and PHP error logs. There might be some relevant error messages as to why OpenCart can't read and resize your images.
Who is online
Users browsing this forum: No registered users and 323 guests