strapi / foodadvisor

🥘 THE Strapi demo application
MIT License
1.09k stars 446 forks source link

Missing images in the cloned/running local instance #85

Closed vagarwal2023 closed 3 years ago

vagarwal2023 commented 3 years ago

Hi, I will preface this issue by saying that I am not a coder (anymore). I cloned the git repo and then ran "yarn && yarn run seed && yarn develop" in the API folder. I then set up my admin account and logged in. However, when I go to the media gallery, all the images are missing. screenshot-localhost_1337-2021 08 19-08_58_44 I have deleted everything and started over but with the exact same results. Any ideas on what I can do to fix these issues?

vagarwal2023 commented 3 years ago

I guess for some reason, the "yarn run seed" command did not do its thing. I found the data.zip file in the root of the api folder and I unzipped the contents of that into [foodadvisorv2]\api\public\uploads and now the images do load up on the client side. In the Strapi admin interface, I see some images but not all in the thumbnails view. I have a lot of missing images. However when I click on one of the missing images, the image does show in the modal. Any ideas on what is going on here?

Screenshot 1: showing many missing images screenshot-localhost_1337-2021 08 19-22_35_22

Screenshot 2: I opened the first missing image screenshot-localhost_1337-2021 08 19-22_36_32

Mcastres commented 3 years ago

Hey @vagarwal1968, thanks for posting this issue.

A new version of this demo is currently being developed on the v2 branch. Feel free to git checkout v2 ;) Are you on Windows?

vagarwal2023 commented 3 years ago

@Mcastres I am on Windows and I am using v2. We also did the v2 install on a Linux distribution with the same results. In fact, I requested a trial for 24 hours, and the server that was provisioned and provided to me by Strapi, Inc. had the exact same issue. So, I know it is not me. :)

rawzone commented 3 years ago

Can confirm I have the same issue using V2 under Linux (No Windows available for testing).

Mcastres commented 3 years ago

The seed command might have some issues on Windows and Linux then. It will be hard for me to test it but I'm on it! However I'm not sure this is happening on live demos @vagarwal1968, I just checked multiple instances and there is no problem on that 🤔

vagarwal2023 commented 3 years ago

@Mcastres I can assure you that this issue happened in the demo instance that was provisioned for me for 24 hours. :) And to prove it to myself, I just requested another instance, and sure enough, this new instance (provisioned today) too has the same issue. Page 1 of the media library is fine with 10 items per page. Increase the size to 100 items per page and you will see the issue. See new screenshot from the demo instance provisioned for me. Media-Library-Screenshot

Mcastres commented 3 years ago

In fact, this is weird 🤔 I will try to know why this is happening! Thanks @vagarwal1968!

Mcastres commented 3 years ago

Alright @vagarwal1968, the new commit should fix the issue :) Sorry for the inconvenience

vagarwal2023 commented 3 years ago

Thanks @Mcastres - I verified that the thumbnails show up in the media library now. All I had to do was download the latest data.zip and unzip its contents to api/public/uploads. Closing the issue.