After copying a opencart from my local server on a public server, I can't see no more the images (both frontend and backend).
I have exported the database and imported in the public server without problem.
If I try to load a new image or create a new folder, there is an error message that says: "Attention: Select folder".
I have verified the settings in the config.php (both root and admin) anche the path for images is ok (copied the path in a shell and I have done a "cd" to the copied path without problem).
What could be the problem?
Regards
Gian Carlo
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
my version is 3.0.3.2. I have installed
opencart-3-x-export-import-multilingual-3-21-cloud.ocmod
Deutsch-German-v.3.0.4-OpenCart-3.xfrom-OSWorX.net.ocmod
tmdsubcategoryimage3.x.x.ocmod
Actually the site is offline.
Gian Carlo
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
So all the images was copied.
I have verified that the tight access are ok (755)
I have exported the DB end imported on the hosting provider
Modified the config.php (root and admin) to access the database and to access the hosted folders
Probably wrong paths in here.giancarlo64 wrote: ↑Wed Mar 18, 2020 1:32 amModified the config.php (root and admin) to access the database and to access the hosted folders
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I have verified and the path is correct. I have tried to comment the the DIR_IMAGE constant and I get PHP errors but not on my images
Notice: Use of undefined constant DIR_IMAGE - assumed 'DIR_IMAGE' in /srv/disk5/MYNAME/www/MYSITE/catalog/controller/extension/module/slideshow.php
It seems that my images are ignored
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
In my config.php file I have the following constant definition:
define('DIR_IMAGE', '/home/www/MYSITE/image/');
if I use the upper definition I get no images but if I use the following definition
define('DIR_IMAGE', '/srv/disk5/MYNAME/www/MYWSITE/image/');
it works!
Strange..
opencart doesn't like symlink?
Gian Carlo
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
home -> /srv/home/home/
in the /srv/home directory I have the "disk5" subdirectory and another symlink home -> /srv/.links/346818
after in the "/srv/home/home" I have the www subdirectory
but I can get to the www subirectory also with the following path
/srv/disk5/MYNAME/www/
And this work for opencart
Gian Carlo