• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Broken Image & Logo in Bagisto with causes and solutions?

Bug Report
24
51
23.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    parasbhadauria63 @Vaishali Agarwal last edited by parasbhadauria63 16 Jan 2021, 18:08 16 Jan 2021, 18:04

    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

    1 Reply Last reply Reply Quote 0
    • V
      Vaishali Agarwal last edited by Vaishali Agarwal 18 Jan 2021, 07:52 18 Jan 2021, 07:52

      @parasbhadauria63
      You just need to run the storage link command from the root directory
      php artisan storage:link

      P 1 Reply Last reply 18 Jan 2021, 16:26 Reply Quote 0
      • P
        parasbhadauria63 @Vaishali Agarwal last edited by 18 Jan 2021, 16:26

        Hi @Vaishali-Agarwal
        I got it.
        Thanks ☺

        1 Reply Last reply Reply Quote 0
        • about a month later
        • G
          Gustavo Ayala last edited by 3 Mar 2021, 13:27

          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 with bagisto-theme.test. So i tried every option given. But the problem was that in the ".env" file APP_URL= starts with https:// and i was serving with http:// (without 's'), so i changed that (updated to http://bagisto-theme.test) and go through the solutions (remove public/storage; config:cache; storage:link) and it worked.

          J 1 Reply Last reply 7 May 2021, 19:44 Reply Quote 0
          • 2 months later
          • J
            Jeff @Gustavo Ayala last edited by 7 May 2021, 19:44

            @Gustavo-Ayala : Thanks Sir, That Work for me..

            1 Reply Last reply Reply Quote 0
            • 7 months later
            • H
              harshaq last edited by harshaq 8 Dec 2021, 08:01 8 Dec 2021, 08:00

              @Vaishali-Agarwal said in Broken Image & Logo in Bagisto with causes and solutions?:

              php artisan config:cache
              php artisan storage:link

              Not working for me!
              App url changed also.

              1 Reply Last reply Reply Quote 0
              • H
                harshaq last edited by 8 Dec 2021, 08:01

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • 22 days later
                • R
                  Ravi last edited by 30 Dec 2021, 09:31

                  logo is not showing on frontend
                  i will try all methods like storage link and also changing the app url in env

                  1 Reply Last reply Reply Quote 0
                  • devansh-webkul
                    devansh-webkul last edited by 31 Dec 2021, 03:34

                    After changing APP_URL. Did you run the php artisan config:cache because changes are cached.

                    1 Reply Last reply Reply Quote 0
                    • 3 months later
                    • Sugimon
                      Sugimon last edited by 18 Mar 2022, 00:48

                      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!

                      1 Reply Last reply Reply Quote 0
                      • Sugimon
                        Sugimon last edited by 21 Mar 2022, 13:09

                        I figured it out myself!!

                        1 Reply Last reply Reply Quote 0
                        • 5 months later
                        • D
                          denish last edited by 14 Aug 2022, 05:53

                          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.

                          1 Reply Last reply Reply Quote 0
                          • sanjay-webkul
                            sanjay-webkul last edited by 17 Aug 2022, 08:23

                            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
                            1 Reply Last reply Reply Quote 0
                            • sanjay-webkul
                              sanjay-webkul last edited by 17 Aug 2022, 08:25

                              @denish
                              If still you are getting the same issue

                              Please run this command for the product service provider only

                               php artisan vendor:publish --force
                              1 Reply Last reply Reply Quote 0
                              • Referenced by  A Amitk-Webkul 23 Aug 2023, 05:47
                              • Referenced by  ashish2409 ashish2409 24 Apr 2024, 07:34
                              • Referenced by  N neo 13 Dec 2024, 20:48
                              43 out of 51
                              • First post
                                43/51
                                Last post