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

Problem with voyager avatar and folder path. #3811

Closed
sgxtract opened this issue Dec 16, 2018 · 10 comments
Closed

Problem with voyager avatar and folder path. #3811

sgxtract opened this issue Dec 16, 2018 · 10 comments

Comments

@sgxtract
Copy link

Version information

  • Laravel: v5.7.17
  • Voyager: v1.1
  • PHP: 7.2.12
  • Database: MySQL

Description

The image for the avatar is broken, and the path for the default.png is not working.

Screenshots

image

Additional context

Also I would like to ask if the Voyager 1.1 has different path for the /storage?

@gcolotti
Copy link

Run the command "php artisan storage:link". Here you have more info.

@sgxtract
Copy link
Author

Run the command "php artisan storage:link". Here you have more info.

I already tried it, and I also tried deleting the file and running it again.
image

@gcolotti
Copy link

gcolotti commented Dec 16, 2018

Try with php artisan config:cache. If still fails, check #722, this link and this comment.

@emptynick
Copy link
Collaborator

emptynick commented Dec 16, 2018

Make sure the file actually exists.
If not, you face the problem mentioned in #3354
@TheyCallMeSurf clearing the config cache is not related in any way.

@gcolotti
Copy link

@emptynick some ppl said clearing cache solved this issue after creating the symlink to storage

@fletch3555
Copy link
Collaborator

Clearing config cache would only work if you changed the setup in config/filesystems.php and had the config cached before.

Please make sure public/storage is actually a symlink to storage/app/public, and not just a directory. I see you're in windows, but if you had a bash terminal (cygwin, git-bash, etc), you could run la -al public/ to see what it shows as. Or view properties in windows explorer. Should show as a "junction" or something I think

@KonradMil
Copy link

KonradMil commented Dec 30, 2018

Make sure you have a correct APP_URL in .env

@lfranz
Copy link

lfranz commented Jan 21, 2019

The issue is caused by an incorrect APP_URL. Try to change that value

@emptynick
Copy link
Collaborator

His menu makes me think he isn't using dummy-data, so he's facing the issue mentioned in #3354 which was fixed in #3818.
Please run php artisan vendor:publish --tag=voyager_avatar
Closing for now.
If this didn't help, please let us know and we'll reopen this one.

@anis096-dev
Copy link

I tried and it called default.png but in admin panel, still broken !!!

@thedevdojo thedevdojo locked and limited conversation to collaborators Apr 28, 2020
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

7 participants