Media not showing in backend

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
User avatar
aimeos
Administrator
Posts: 4385
Joined: 01 Jan 1970, 00:00

Re: Media not showing in backend

Post by aimeos » 17 Oct 2020, 09:35

Can you do a quick test what this PHP code in a Laravel controller returns?

Code: Select all

config( 'app.url' )
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Media not showing in backend

Post by harshithvemula » 17 Oct 2020, 09:51

I placed the code in the return view of a controller and i got this message when i opened the view.

return Response::view(config( 'app.url' ) );

output-
View [http:..127.0.0.1:8000] not found.

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

Re: Media not showing in backend

Post by aimeos » 17 Oct 2020, 10:18

Is there a slash in the mshop_media.preview records? Can you please post a screenshot?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
harshithvemula
Posts: 20
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: 4385
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: 20
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: 4385
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: 20
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: 4385
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

gargmukul121
Posts: 1
Joined: 20 Oct 2020, 07:53

Re: Media not showing in backend

Post by gargmukul121 » 20 Oct 2020, 08:02

I am using laravel and facing the same issue

Post Reply