Voyager: Avatar is not working, showing broken images

Created on 21 Feb 2017  路  24Comments  路  Source: the-control-group/voyager

  • 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

Most helpful comment

@sweggggg You need to specify APP_URL in .env file

All 24 comments

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

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

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

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

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

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

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?

@sweggggg You need to specify APP_URL in .env file

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

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.

@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.

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

Fixed issue

dont forget to restart the server

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.

@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.

Images not displayed on production any help

@code2913 You need to specify APP_URL in .env file

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

@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.

@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

Thank you @hafizhconan your solution solved my problem. 馃憤

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

Just specify APP_URL in .env file

you need to specify
APP_URL=http://localhost

to

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

You do NOT need to restart your server after changing APP_URL

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

duongsieu picture duongsieu  路  3Comments

winex01 picture winex01  路  3Comments

vaggelis2018 picture vaggelis2018  路  3Comments

abacram picture abacram  路  3Comments

IvanBohonosiuk picture IvanBohonosiuk  路  4Comments