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
    22688
    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

      Hi @Vaishali-Agarwal
      I got it.
      Thanks ☺

      1 Reply Last reply Reply Quote 0
      • G
        Gustavo Ayala last edited by

        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 Reply Quote 0
        • J
          Jeff @Gustavo Ayala last edited by

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

          1 Reply Last reply Reply Quote 0
          • H
            harshaq last edited by harshaq

            @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

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • R
                Ravi last edited by

                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

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

                  1 Reply Last reply Reply Quote 0
                  • Sugimon
                    Sugimon last edited by

                    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

                      I figured it out myself!!

                      1 Reply Last reply Reply Quote 0
                      • D
                        denish last edited by

                        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

                          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

                            @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 
                            • Referenced by  ashish2409 ashish2409 
                            • Referenced by  N neo 
                            • First post
                              Last post