Broken Image & Logo in Bagisto with causes and solutions?
-
@nikul
please go to the .env and check that app_url should be valid.
once this is done then run the below commands from the project root directory:php artisan config:cache
php artisan storage:link -
Thank you @Vaishali-Agarwal it working now
-
@Vaishali-Agarwal i am facing this problem when running your last commands
symlink(): No such file or directory -
run the below command from the root directory:
cd public
rm storage
After removing the symbolic link change directory to the main folder using:cd ..
Now create the symbolic link with the following command:
php artisan storage:link
After running the command successfully, you should get the following messageThe [public/storage] directory has been linked.
I hope this helps you. -
Hi,
I cant add my own logo instead of velocity logo. I have added an image from the admin panel but it is always shown as a broken image.
I have removed/linked/unlinked few times the public storage changed the .env and cached and still no success. I am in dev env and and i have APP_URL=http://127.0.0.1:8000/
Please, advise -
@NGS
does the logo visible on the frontend? -
This post is deleted! -
the logo not visible on frontend and inside the admin dashboard after it saves. Also encountering the same issue. cleared cache, config, linked and unlinked... but it's still the same.
-
@olumide
may i know your APP_URL set inside .env -
Here i am facing the problem images are not loading
By adding custom module at composer.json
"Webkul\Razorpay\": "packages/Webkul/Razorpay/src"
Images are not loading
If i remove that module it's working
Please provide the solution -
@adapala-vr
while adding package are you using php artisan vendor:publish --force command ? -
Hi @Vaishali-Agarwal @rahul @admin
Front end fetching the file from an irrelevant location: bagisto-new/public/storage/category/3/QkG71HJwsYVFEmkM8IwBkovmQxIli9kIu2jl86DS.jpg
Actual File Location after uploading: bagisto-new\storage\app\public\category\3\QkG71HJwsYVFEmkM8IwBkovmQxIli9kIu2jl86DS.jpg
This is the reason resulting in Broken Image & Logo in Bagisto while creating the category.
Please help me out how this can be corrected.
Thanks -
@parasbhadauria63
You just need to run the storage link command from the root directory
php artisan storage:link -
Hi @Vaishali-Agarwal
I got it.
Thanks -
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.