Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumb not displaying #1312

Closed
pianistprogrammer opened this issue Nov 17, 2018 · 15 comments
Closed

Thumb not displaying #1312

pianistprogrammer opened this issue Nov 17, 2018 · 15 comments

Comments

@pianistprogrammer
Copy link

pianistprogrammer commented Nov 17, 2018

I have everything all set up and I see the url of the image if I inspect the image url http://localhost/storage/1/conversions/Jeery-thumb.jpg but this url is returning 404 on my browser when i navigate to this path. I then tried it with the port my laravel project was running on 8000 and then it showed localhost:8000/storage/1/conversions/Jeery-thumb.jpg How should this be handled ?

@yemilgr
Copy link

yemilgr commented Nov 23, 2018

only thumb images are showing 404 or all images ???

@pianistprogrammer
Copy link
Author

all images....

@yemilgr
Copy link

yemilgr commented Nov 24, 2018

Have you tried php artisan storage:link ??
I think this will solve the problem

@pianistprogrammer
Copy link
Author

did that already, I can see the storage folder in the public

@carbontwelve
Copy link

carbontwelve commented Jan 24, 2019

@yemilgr
I can reproduce this issue running my Laravel app via php artisan serve.

Having looked into this further I can see that the issue is caused due to the filesystems.php config in my Laravel install using env('APP_URL').'/storage' and my APP_URL in .env is set to http://localhost.

@pianistprogrammer
The solution is to change your APP_URL value to http://localhost:8000

@mateo2181
Copy link

Any solution for this? I have the same problem. I am saving my images in public disk and I have run php artisan storage:link.
Code:
$p = Paciente::find(1);
$mediaItems = $p->getMedia();
$publicUrl = $mediaItems[0]->getUrl();
echo "<img src='" . $publicUrl . "' \>";

@moebaca
Copy link

moebaca commented Apr 4, 2019

@carbontwelve Thank you my friend! This did the trick.

@brendt
Copy link
Contributor

brendt commented Jul 12, 2019

Was horizon running to generate the images behind the scenes?

I'll be closing this issue, if anyone comes up with a concrete error, feel free to drop a reply.

@brendt brendt closed this as completed Jul 12, 2019
@vlad1301
Copy link

@yemilgr
I can reproduce this issue running my Laravel app via php artisan serve.

Having looked into this further I can see that the issue is caused due to the filesystems.php config in my Laravel install using env('APP_URL').'/storage' and my APP_URL in .env is set to http://localhost.

@pianistprogrammer
The solution is to change your APP_URL value to http://localhost:8000

Thank you. It worked for me

@jayprakash554
Copy link

Please run this on cmd
php artisan storage:link

this is solve my problem

@kolyacd
Copy link

kolyacd commented Jun 22, 2021

code
be aware of the storage_path as well as the url

@llantasypartes
Copy link

@yemilgr I can reproduce this issue running my Laravel app via php artisan serve.

Having looked into this further I can see that the issue is caused due to the filesystems.php config in my Laravel install using env('APP_URL').'/storage' and my APP_URL in .env is set to http://localhost.

@pianistprogrammer The solution is to change your APP_URL value to http://localhost:8000

Thanks, It worked for me =)

@doncadavona
Copy link

Conversions are queued by default, perhaps the queue worker is not running or is outdated, causing unprocessed thumb conversions until the queue worker is updated and running.

Stop the current queue worker then re-run it:

php artisan queue:work

@vanthuonghcmue
Copy link

@yemilgr I can reproduce this issue running my Laravel app via php artisan serve.

Having looked into this further I can see that the issue is caused due to the filesystems.php config in my Laravel install using env('APP_URL').'/storage' and my APP_URL in .env is set to http://localhost.

@pianistprogrammer The solution is to change your APP_URL value to http://localhost:8000

Thanks, it worked for me <3

@bijoy-xpeedstudio
Copy link

Conversions are queued by default, perhaps the queue worker is not running or is outdated, causing unprocessed thumb conversions until the queue worker is updated and running.

Stop the current queue worker then re-run it:

php artisan queue:work

yes it's working for s3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests