Bagisto Forum

    Bagisto

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

    There is no image front-end,but had back-end

    Bug Report
    2
    2
    129
    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.
    • 1
      15913132323 last edited by

      My Steps:
      cd /workdir
      composer create-project bagisto/bagisto mywebtmp
      mv all the files in the mywebtmp to /workdir/myweb
      cd /workdir/myweb
      I only changed the database's info in the .env
      php artisan install
      I use a local domain to the /workdir/myweb/public, the domain is http://test.bagisto
      Finished!
      Then, http://test.bagisto can open, http://test.bagisto/admin also can open. but only no image front-end and back-end.

      so I do next:
      cd /workdir/myweb
      rm public/storage
      php artisan storage:link
      Then vim .env APP_URL=http://test.bagisto
      Then
      php artisan cache:clear
      php artisan view:clear
      php artisan route:clear
      php artisan clear-compiled
      php artisan config:cache
      composer dump-autoload
      php artisan vendor:publish
      It is all successed.

      The when I upload image jpg back-end, and when I edit the produce to see the image, it is there.
      http://test.bagisto/storage/product/30/glRwTsK5ITBnJyRa7hyjGL6D2K606Ds4qA1hqnZc.jpg
      and
      ls /workdir/myweb/public/storage/product/productid/
      also can see the jpg , so the back-end is ok.

      but I cannot find the /workdir/myweb/public/cache , no this dir.
      http://test.bagisto/cache/small/product/30/glRwTsK5ITBnJyRa7hyjGL6D2K606Ds4qA1hqnZc.jpg
      also it is broken.
      how to fix this? thanks.

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Please use single thread,
        https://forums.bagisto.com/topic/2523/back-end-is-ok-but-front-end-the-image-is-broken

        1 Reply Last reply Reply Quote 0
        • First post
          Last post