Post by blongso » Sat Mar 13, 2021 4:28 am

Hello community,
After an accident, the server provider imported a 2 month old backup. Unfortunately, for personal reasons, I missed making a backup myself, monthly.
Now I have the problem that the images are not visible in the administration panel, but in the shop.
Example:
Image
Please help me to display the pictures again ...
THX in advance for your help!
Last edited by blongso on Sat Mar 13, 2021 5:13 pm, edited 1 time in total.

New member

Posts

Joined
Sat Apr 11, 2020 4:18 am

Post by mikeinterserv » Sat Mar 13, 2021 4:40 am

What accident
If your images were deleted they are not in the backup.
You will have to re-upload them

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by by mona » Sat Mar 13, 2021 5:03 am

check the admin config file that the route is correct

When you say a back up do you mean the database / the files / or both ?

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by blongso » Sat Mar 13, 2021 5:18 am

THx for your answer!
Unfortunately there was a big fire in which many servers were destroyed.
Well the problem is that there is not a single image to be seen in the Image Manager. I still have a test shop for testing, i.e. with the original files from the demos shop, and even here I can no longer see any images in the Image Manager

New member

Posts

Joined
Sat Apr 11, 2020 4:18 am

Post by blongso » Sat Mar 13, 2021 5:24 am

@by mona
The images are all on the server in /image/cache
But there are no more images in the Image Manager.
I've already tried to insert the path there, but I couldn't .. error: Directory does not exist!
I'm doing something wrong, but what? What must the exact path be to display the images in the Image Manager again?
What should I do?

New member

Posts

Joined
Sat Apr 11, 2020 4:18 am

Post by by mona » Sat Mar 13, 2021 6:31 am

sorry about your fire :(
the actual images should be in your image/catalog
your cached images are in your image/cache

so maybe you just need to copy the files from another backup of image/catalog

when your service provider did your restore from back-up
was this the database and files ?

What is in your admin/config.php
THIS LINE
define('DIR_IMAGE', ‘/xx/xx/xxx/image/');
Last edited by by mona on Sat Mar 13, 2021 6:37 am, edited 1 time in total.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by mikeinterserv » Sat Mar 13, 2021 6:37 am

I am guessing from the word import that the DB was imported that contains the path to the images but NOT the images themselves.
As Mona says the images are on the server in image/catalog - Check the server that the folder exists and see what is inside it. If it is empty you have to re-upload the images to image/catalog folder. If the images are in the folder then something else like the config file may be wrong

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by blongso » Sat Mar 13, 2021 2:27 pm

re,
We're getting closer to it, that's great! Thank you for your help!
I looked at the config.php from my demo shop.

Code: Select all

// DIR
define('DIR_APPLICATION', '/home3/xx/public_html/ocxxxx/catalog/');
define('DIR_SYSTEM', '/home3/xx/public_html/ocxxxx/system/');
define('DIR_IMAGE', '/home3/xx/public_html/ocxxxx/image/');
define('DIR_STORAGE', '/home3/xxxx/ocartdataxxxx/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/');
I noticed that some had / home3 / in front of them. But when I look at the server, I don't see a folder called home3.
catalog, system, image and storage
Now I just thought, oh yes, I just have to edit that away so that the path is correct again.
But that was obviously not the solution, because the images in the Image Manager cannot be seen.
Changing the line Image dir was unfortunately not the solution ---> /image/catalog/

edit: Problem just solved .... I didn't have in mind that there is also a config.php in the / admin folder ... it had a different path !!!!
I have just corrected it and now you can see all the pictures!

New member

Posts

Joined
Sat Apr 11, 2020 4:18 am
Who is online

Users browsing this forum: JessiesBoutique and 520 guests