Instagram Feed Stopped Displaying
perryworld opened this issue · comments
Hi,
New to GitHub
We have a site at pollingtonpreschool.com and display their Instagram feed on the site
Everything was working fine but in the last couple of days it stopped working and in the console we are getting this message
Access to XMLHttpRequest at 'https://www.instagram.com/explore/tags/pollingtonpreschoolweb/' from origin 'https://pollingtonpreschool.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Is this something you can help with
Any help is much appreciated
Thanks
Rich
Have you updated the script to the latest version 3.0.2?
Hi
Thanks for coming back so quick
We are new to GitHub - how do we upgrade to the latest version ;o(
Rich
Download it from https://github.com/jsanahuja/jquery.instagramFeed/releases/tag/3.0.2
and then replace jquery.instagramFeed.min.js on your site with the new one from zip.
Hi,
We've done that but still get the same error
Rich
Sorry, you can se the issue here
https://pollingtonpreschool.com/gallery/pollington-social-media
No, as I can see you are not using the latest version.
Maybe you have several jquery.instagramFeed.min.js instances on your site?
Hi,
We downloaded the zip and extracted it
We then renamed the existing jquery.instagramFeed.min.js to jquery.instagramFeed.min.jsOLD and uploaded the new one
Not sure why it's still picking up the old one
Cheers
Rich
Hi,
Any other ideas as we updated the file but it didn't seem to make any difference
Any help would really be appreciated
Cheers
Rich
Hi mahotilo
Thanks for this - I have just tried this and they didn't match so I have deleted the file and uploaded it again
Following your instructions I compared the files and it now says they are the same
Unfortunately the Instagram images still don't show
cheers
Rich
Following your instructions I compared the files and it now says they are the same
I can not confirm here. I can still see the old one.
It is easy to check. The latest version contains text location
.
Hi mahotilo
Sorry for all the questions
I've just checked your file and it contains "location"
I checked the file on my server and that also contains "location" - I've attached my file
So I've no idea why you are seeing the old version - cache possibly - I have cleared it on my server
Thanks for your help with this - much appreciated
Cheers
Rich
jquery.instagramFeed.min (3).zip
You still have some kind of mess with your script file.
Your page uses this one
https://pollingtonpreschool.com/jquery.instagramFeed.min.js
It is old and does not contain "location". Please, check, how many instances of jquery.instagramFeed.min.js you have.
Or, switch to CDN
https://cdnjs.cloudflare.com/ajax/libs/jquery.instagramFeed/3.0.2/jquery.instagramFeed.min.js
Please accept my apologies
There was another version in the root - I have replaced that one and now it is working
Thanks for the great support - much appreciated
Rich