Post by giancarlo64 » Tue Mar 17, 2020 9:33 pm

Hi,
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

New member

Posts

Joined
Tue Jun 27, 2017 6:30 pm

Post by JNeuhoff » Wed Mar 18, 2020 1:14 am

Not enough details to help you. What is your OpenCart version? Any 3rd party extensions installed? What is the URL of your website?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by giancarlo64 » Wed Mar 18, 2020 1:19 am

Hi,
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

New member

Posts

Joined
Tue Jun 27, 2017 6:30 pm

Post by JNeuhoff » Wed Mar 18, 2020 1:25 am

How exactly did you upload your images? The Export/Import tool only updates the image name in the database, it doesn't upload the actual image file.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by giancarlo64 » Wed Mar 18, 2020 1:32 am

I have done a zip of my local folder, copied the zip file on the hosting provider and unzip it.
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

New member

Posts

Joined
Tue Jun 27, 2017 6:30 pm

Post by paulfeakins » Wed Mar 18, 2020 6:03 pm

giancarlo64 wrote:
Wed Mar 18, 2020 1:32 am
Modified the config.php (root and admin) to access the database and to access the hosted folders
Probably wrong paths in here.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by giancarlo64 » Wed Mar 18, 2020 8:52 pm

Hi,
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

New member

Posts

Joined
Tue Jun 27, 2017 6:30 pm

Post by JNeuhoff » Wed Mar 18, 2020 9:07 pm

Well, you answered your own question: The DIR_IMAGE is required in the config.php files, you can't just comment it out!

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by giancarlo64 » Wed Mar 18, 2020 9:39 pm

I solved the problem:

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

New member

Posts

Joined
Tue Jun 27, 2017 6:30 pm

Post by letxobnav » Wed Mar 18, 2020 10:01 pm

you defined the symlink and allowed it in your webserver config?

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.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by giancarlo64 » Thu Mar 19, 2020 12:37 am

No The symlink is done by my Webprovider Awardspace. In the root the symlink is the following:

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

New member

Posts

Joined
Tue Jun 27, 2017 6:30 pm

Post by Mowico » Fri Mar 20, 2020 7:12 pm

Which add-ons did you install?

Newbie

Posts

Joined
Fri Mar 20, 2020 7:07 pm
Who is online

Users browsing this forum: NicNie, shanghua and 452 guests