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

Avatar is not working, showing broken images #801

Closed
JohanIskandar opened this issue Feb 21, 2017 · 24 comments
Closed

Avatar is not working, showing broken images #801

JohanIskandar opened this issue Feb 21, 2017 · 24 comments

Comments

@JohanIskandar
Copy link

  • Laravel Version: 5.4.12
  • Voyager Version: dev-release/v0.11"
  • PHP Version: 7.1.0
  • Database Driver & Version:

Hi,

I am not sure why the avatar is broken. I recently just upgraded to the latest development version

image

I was wondering whether I have missed a step when upgrading it, it seems to me, no matter what image I picked for the avatar is not working. thank you

regards,

Johan

@VladDobrescu
Copy link

VladDobrescu commented Feb 21, 2017

Check the symlink. Had the same issue in a vagrant-homestead environment, the symlink could not be made. If you're in the same boat (huehue), exit the box and run an ln command

@JohanIskandar
Copy link
Author

Hi BlenderBro,

Thanks for responding. I am not using Vagrant, just on my localhost (Mac OS). Could you point out how to do it, I mean the steps. Sorry, I am just a beginner. Thanks.

regards,

Johan

@VladDobrescu
Copy link

Open a terminal and cd into your project folder. Run php artisan storage:link. If that fails, read this #722

@marktopper
Copy link
Contributor

Please use the released version of v0.11.1 instead of the dev branch. This branch will be deleted soon.

@bab55z
Copy link
Contributor

bab55z commented Feb 21, 2017

i tried everything but nothing works! please help needed. i'm runnnig v0.11.1 on laravel 5.4, (Windows)

@marktopper
Copy link
Contributor

@bab55z: Please make a new issue with as many details as possible.

@sweggggg
Copy link

sweggggg commented Mar 9, 2017

i just fresh install voyager, i still have the problem.

i tried php artisan storage:link in my project folder, it says "The "public/storage" directory already exists." still have the same problem

any solutions?

@sikhub
Copy link
Contributor

sikhub commented Mar 9, 2017

@sweggggg You need to specify APP_URL in .env file

@apiaget
Copy link
Contributor

apiaget commented Mar 29, 2017

I had the same problem and it is now resolved, all I did was replacing the following in my .env file :
APP_URL=localhost:8000
replaced by
APP_URL=http://localhost:8000
I was running Laravel 5.4.16 with voyager 0.11.8 that I installed by following your guide.
The network tab in chrome's dev tools was listing the error as : net::ERR_UNKNOWN_URL_SCHEME

@rudiroed
Copy link

rudiroed commented Jun 7, 2017

Yes me too, please help.
I have tried to change APP_URL run this php artisan storage:link but still not working for me.
I used Laravel and Voyager latest version.
Do you have any help for me to fix this issue?

Thank you.

@fletch3555
Copy link
Collaborator

@rudiroed, this issue has been closed for over 3 months, and the last comment over 2 months ago. Please open your own issue or join our slack group and ask there.

@hafizhconan
Copy link

Just solved this:
Updated .env file:
APP_URL=http://localhost:8000

Fixed issue

dont forget to restart the server

@OctaneInteractive
Copy link

OctaneInteractive commented Jun 20, 2017

I'm also having this same problem. I've gone through several different issues here ( #425, and #722 ), following the advice given, and none of those recommendations have worked.

@fletch3555
Copy link
Collaborator

@hafizhconan, restarting the server shouldn't be necessary. Also, this issue was resolved quite a while ago. We're glad you've solved your issue, but it's unrelated to the one here given that the solutions differ.

@OctaneInteractive, as has already been said, this has been closed for months. Please open your own issues instead of jumping in on closed ones.

@sammagafu
Copy link

Images not displayed on production any help

@sikhub
Copy link
Contributor

sikhub commented Jun 29, 2017

@code2913 You need to specify APP_URL in .env file

@sammagafu
Copy link

i did but its not working in production. and i cant fix simlink

@fletch3555
Copy link
Collaborator

fletch3555 commented Jun 29, 2017

@code2913, as I've already stated multiple times in this thread, this issue has been closed. Please open your own or request help on the Slack group.

@RyanAtregenio8
Copy link

@apiaget Thank you sir i fix my problem..

when i do this ..

APP_URL=http://localhost

to

APP_URL=http://localhost:8000

then restart server its ok now . thank you again

@sweetiefaithpaculanan
Copy link

Thank you @hafizhconan your solution solved my problem. 👍

@Globalvnet
Copy link

Globalvnet commented Feb 1, 2018

Hello
I had the same issue with media library,uploaded images not shown in admin panel.
Solving issue very simple
change in .env file
APP_URL=http://yoursitename

@almokhtarbr
Copy link

Just specify APP_URL in .env file

@isidorodasilva
Copy link

you need to specify
APP_URL=http://localhost

to

APP_URL=http://localhost:8000
and restart your server

@thedevdojo thedevdojo locked as resolved and limited conversation to collaborators Apr 17, 2018
@fletch3555
Copy link
Collaborator

You do NOT need to restart your server after changing APP_URL

This issue has been resolved for months, and is now locked

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

No branches or pull requests