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
parmonov98
Posts: 33
Joined: 24 Sep 2020, 12:12

Media not showing in backend

Post by parmonov98 » 16 Oct 2020, 04:33

aimeos wrote: 26 Aug 2020, 08:09 You are right, in TYPO3 the prefix from "resource/fs/baseurl" isn't used. We've fixed that and you can install the latest commit using:

Code: Select all

composer req aimeos/ai-admin-jqadm:2020.07.x-dev
2020.10-dev using.
the same problem in frontend too. but after changing APP_URL in .env file to http://127.0.0.1:8000 it started showing product imgs in front-end but in the backend. The change doesn't affect. What can I do?
https://i.imgur.com/OnR7owA.png

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

Re: Media not showing in backend

Post by aimeos » 16 Oct 2020, 15:56

Did you set the following in your .env file (no slash at the end)?

Code: Select all

APP_URL=http://127.0.01:8000
Changing the APP_URL constant and adding the port is required when you use the internal PHP web server (see https://github.com/aimeos/aimeos-laravel#setup after the Blade template code).

If it's correct, please check if the file is stored in the ./public/preview/8/f/ directory at all.
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, 09:12

I am using laravel and facing the same issue. Media is not getting displayed in backend. I have inspected elements and found an extra / in the url of image.

Code: Select all

http://127.0.0.1:8000//preview/e/d/ed5b3df5_2066981171.jpg

Code: Select all

My App url is APP_URL=http://127.0.0.1:8000(No slash at end)

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

Re: Media not showing in backend

Post by aimeos » 17 Oct 2020, 09:17

Does this link work and displays the image (URL is without double slashes):

Code: Select all

http://127.0.0.1:8000/preview/e/d/ed5b3df5_2066981171.jpg
If yes, can you please execute:

Code: Select all

php artisan aimeos:clear
Maybe the output is cached.
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, 09:27

yes this url is displaying the image

Code: Select all

http://127.0.0.1:8000/preview/e/d/ed5b3df5_2066981171.jpg
and even i have executed this command now

Code: Select all

php artisan aimeos:clear
and refreshed the page but the images are not displaying.

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

Re: Media not showing in backend

Post by aimeos » 17 Oct 2020, 09:29

Is the URL of the image still

Code: Select all

http://127.0.0.1:8000//preview/e/d/ed5b3df5_2066981171.jpg
Which Aimeos version are you using?
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, 09:33

yes the url is still same. Just now i copied it from inspect elements.

Code: Select all

http://127.0.0.1:8000//preview/6/7/678bbcf5_2079903277.jpg
my aimeos version is "aimeos/aimeos-laravel": "~2020.10.1",

User avatar
aimeos
Administrator
Posts: 7836
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: 33
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: 7836
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

Post Reply