Media not showing in backend

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
harshithvemula
Posts: 33
Joined: 19 Jul 2020, 16:27

Re: Media not showing in backend

Post by harshithvemula » 17 Oct 2020, 10:35

Sorry for that i dont know how to do that. Can you explain me so that i can send

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Media not showing in backend

Post by aimeos » 17 Oct 2020, 10:39

Have a look at the records in the "mshop_media" table and there in the "preview" column. How does the field values for that image look like?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
harshithvemula
Posts: 33
Joined: 19 Jul 2020, 16:27

Re: Media not showing in backend

Post by harshithvemula » 17 Oct 2020, 11:06

Unable to send attatchments.



"1":"data:image\/gif;base64,R0lGODdhAQABAIAAAAAAA...

Edit Edit
Copy Copy
Delete Delete
{"240":"preview\/e\/d\/ed5b3df5_2066981171.jpg","7...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/2.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/3.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/4.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"1":"data:image\/gif;base64,R0lGODdhAQABAIAAAAAA\...

Edit Edit
Copy Copy
Delete Delete
{"1":"data:image\/gif;base64,R0lGODdhAQABAIAAAPX13...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/2.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/3.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/4.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"1":"https:\/\/demo.aimeos.org\/media\/1.jpg","25...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/3.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/4.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/1.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/2.jpg","...

Edit Edit
Copy Copy
Delete Delete
{"240":"https:\/\/demo.aimeos.org\/media\/0-vouche...

Edit Edit
Copy Copy
Delete Delete
{"360":"https:\/\/demo.aimeos.org\/media\/stage.jp...

Edit Edit
Copy Copy
Delete Delete
{"1":"https:\/\/demo.aimeos.org\/media\/service\/p...

Edit Edit
Copy Copy
Delete Delete
{"0":"https:\/\/demo.aimeos.org\/media\/service\/d...

Edit Edit
Copy Copy
Delete Delete
{"0":"https:\/\/demo.aimeos.org\/media\/service\/d...

Edit Edit
Copy Copy
Delete Delete
{"0":"https:\/\/demo.aimeos.org\/media\/service\/f...

Edit Edit
Copy Copy
Delete Delete
{"0":"https:\/\/demo.aimeos.org\/media\/service\/t...

Edit Edit
Copy Copy
Delete Delete
{"0":"https:\/\/demo.aimeos.org\/media\/service\/p...

Edit Edit
Copy Copy
Delete Delete
{"0":"https:\/\/demo.aimeos.org\/media\/service\/s...

Edit Edit
Copy Copy
Delete Delete
{"0":"https:\/\/demo.aimeos.org\/media\/service\/d..

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Media not showing in backend

Post by aimeos » 17 Oct 2020, 11:11

The relative URLs are without leading slash:

Code: Select all

"240":"preview\/e\/d\/ed5b3df5_2066981171.jpg"
So the problem could only be an old cache. Can you truncate the "madmin_cache" table please.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
harshithvemula
Posts: 33
Joined: 19 Jul 2020, 16:27

Re: Media not showing in backend

Post by harshithvemula » 17 Oct 2020, 15:00

I have truncated the table "madmin_cache" and also cleared the cache using
php artisan config:cache
php artisan aimeos:clear
php artisan cache:clear

But no change.Still the images are notdisplayed

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Media not showing in backend

Post by aimeos » 19 Oct 2020, 16:17

I think, the slash added here is wrong:
https://github.com/aimeos/aimeos-larave ... lt.php#L49
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Media not showing in backend

Post by aimeos » 20 Oct 2020, 13:28

Can you please update to 2020.10.x-dev?

Code: Select all

composer req aimeos/aimeos-laravel:2020.10.x-dev
Does it work for you after the update?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
harshithvemula
Posts: 33
Joined: 19 Jul 2020, 16:27

Re: Media not showing in backend

Post by harshithvemula » 03 Nov 2020, 18:23

All the changes i have done are getting over rided when i update :roll: . Can you tell me how to stop it over riding so that i can update and check

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Media not showing in backend

Post by aimeos » 03 Nov 2020, 18:37

Don't change the Aimeos core files or the files in the official Aimeos extensions. Never!
Instead, create your own Aimeos extension and add your changed templates and new classes there:
- https://aimeos.org/docs/latest/developer/extensions/
- https://aimeos.org/extensions
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
harshithvemula
Posts: 33
Joined: 19 Jul 2020, 16:27

Re: Media not showing in backend

Post by harshithvemula » 04 Nov 2020, 17:07

I have updated to the "composer req aimeos/aimeos-laravel:2020.10.x-dev " version but still the problem is not solved. The broken images are still appearing in admin panel

Post Reply