Broken Image & Logo in Bagisto with causes and solutions?
-
Hi, I had the same issue. I'm developing on my local machine with Laragon, and have Bagisto on a folder in the
/htdocs/bagisto-theme
but with a vhost i access withbagisto-theme.test
. So i tried every option given. But the problem was that in the ".env" fileAPP_URL=
starts withhttps://
and i was serving withhttp://
(without 's'), so i changed that (updated tohttp://bagisto-theme.test
) and go through the solutions (remove public/storage; config:cache; storage:link) and it worked. -
@Gustavo-Ayala : Thanks Sir, That Work for me..
-
@Vaishali-Agarwal said in Broken Image & Logo in Bagisto with causes and solutions?:
php artisan config:cache
php artisan storage:linkNot working for me!
App url changed also. -
This post is deleted! -
logo is not showing on frontend
i will try all methods like storage link and also changing the app url in env -
After changing
APP_URL
. Did you run thephp artisan config:cache
because changes are cached. -
I had the same problem and i did the all the solutions that you guys provided here but the problem is not solved.
bagisto itself works perfectly on my local PC but not on the server.
and I searched for solution further and I found why.
my hosting server prohibits symbolic link for security reasons. that is why images are not shown.to get around this, I may have to use hard link instead of symbolic link? maybe. and one of the files I should edit may be config/filesystem.php? correct?
any help is much appreciated!
-
I figured it out myself!!
-
Even after performing all the tasks, I am having issue with broken images. Images get stored in the database but are not visible on the frontend.
-
Hi @denish
please follow the given steps.cd public unlink storage //From the project's root directory run the following command: php artisan storage:link php artisan optimize:clear
-
@denish
If still you are getting the same issuePlease run this command for the product service provider only
php artisan vendor:publish --force