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

Bagisto

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

Product Images Not Showing due to cache issues

General Discussion
2
3
702
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.
  • V
    vernonthedev last edited by 4 Jan 2024, 10:59

    Hey Guys, my bagisto images are not loading from cache.
    d7c69461-f578-4024-a46f-5526bec10fc9-image.png
    I have tried;
    php artisan config:clear
    php artisan view:clear
    php artisan vendor:publish

    Though my bagiso version doesn't contain the /bootstrap/cache/config file as others have, i have tried but it doesn't work;
    Composer version 2.6.1
    PHP 8.0.28

    Any help please;
    My env file looks like;
    APP_NAME=Bagisto
    APP_ENV=local
    APP_VERSION=1.4.3
    APP_KEY=base64:9Q3LODbKFStehMK98/Rl4nGun1av6DJCM5pThnBZY/I=
    APP_DEBUG=true

    APP_URL=http://127.0.0.1:8000

    APP_URL=http://127.0.0.1:8000/bagisto/public
    APP_ADMIN_URL=admin
    APP_TIMEZONE=Asia/Kolkata
    APP_LOCALE=en
    APP_CURRENCY=USD

    ALGOLIA_APP_ID=TX6UNX9ARO
    ALGOLIA_SECRET=86f96b2cc23f91b84d6e03bf8d0fcee3

    LOG_CHANNEL=stack

    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=onlinestore
    DB_USERNAME=root
    DB_PASSWORD=
    DB_PREFIX=

    BROADCAST_DRIVER=log
    CACHE_DRIVER=file
    SESSION_DRIVER=file
    SESSION_LIFETIME=120
    QUEUE_DRIVER=sync

    REDIS_HOST=127.0.0.1
    REDIS_PASSWORD=null
    REDIS_PORT=6379

    MAIL_DRIVER=smtp
    MAIL_HOST=smtp.mailtrap.io
    MAIL_PORT=2525
    MAIL_USERNAME=
    MAIL_PASSWORD=
    MAIL_ENCRYPTION=tls

    SHOP_MAIL_FROM=
    ADMIN_MAIL_TO=
    MAIL_FROM_NAME=

    FIXER_API_KEY=
    EXCHANGE_RATES_API_KEY=

    PUSHER_APP_ID=
    PUSHER_APP_KEY=
    PUSHER_APP_SECRET=
    PUSHER_APP_CLUSTER=mt1

    MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
    MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

    FACEBOOK_CLIENT_ID=
    FACEBOOK_CLIENT_SECRET=
    FACEBOOK_CALLBACK_URL=https://yourhost.com/customer/social-login/facebook/callback

    TWITTER_CLIENT_ID=
    TWITTER_CLIENT_SECRET=
    TWITTER_CALLBACK_URL=https://yourhost.com/customer/social-login/twitter/callback

    GOOGLE_CLIENT_ID=
    GOOGLE_CLIENT_SECRET=
    GOOGLE_CALLBACK_URL=https://yourhost.com/customer/social-login/google/callback

    LINKEDIN_CLIENT_ID=
    LINKEDIN_CLIENT_SECRET=
    LINKEDIN_CALLBACK_URL=https://yourhost.com/customer/social-login/linkedin/callback

    GITHUB_CLIENT_ID=
    GITHUB_CLIENT_SECRET=
    GITHUB_CALLBACK_URL=https://yourhost.com/customer/social-login/github/callback

    ashish2409 1 Reply Last reply 4 Jan 2024, 11:03 Reply Quote 0
    • ashish2409
      ashish2409 @vernonthedev last edited by 4 Jan 2024, 11:03

      @vernonthedev

      hello there,

      please check the root storage folder, weather there are images stored or not. In case you find the images in the storage folder, run below command,

      php artisan storage:link

      php artisan optimize:clear

      Thanks

      V 1 Reply Last reply 4 Jan 2024, 11:06 Reply Quote 0
      • V
        vernonthedev @ashish2409 last edited by 4 Jan 2024, 11:06

        @ashish2409
        sanjana singh 12 Apr 2019, 06:16
        If you face this issue, means that you ran the "php artisan vendor: publish --force" command. Which override imagecache.php file in the config folder.

        Go to our git repository, copy "imagecache.php" file from there, replace it from your current file "imgecache.php" file and run "php artisan vendor: publish" command without force.

        Then images will be visible on the front end.(THIS WORKS THANKS)

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post