Syntax error in must of methods
hossein-rp opened this issue · 13 comments
hi i have this problem can any body knows how to solve it?
show me this error in must of methods .
thank you.
PHP Fatal error: Uncaught Instagram\Exception\InstagramFetchException: Syntax error in C:\xampp2\htdocs\instagram\instagram-user-feed\vendor\pgrimaud\instagram-user-feed\src\Instagram\Transport\AbstractDataFeed.php:61
Stack trace:
#0 C:\xampp2\htdocs\instagram\instagram-user-feed\vendor\pgrimaud\instagram-user-feed\src\Instagram\Transport\JsonMediaDetailedDataFeed.php(21): Instagram\Transport\AbstractDataFeed->fetchJsonDataFeed('https://www.ins...')
#1 C:\xampp2\htdocs\instagram\instagram-user-feed\vendor\pgrimaud\instagram-user-feed\src\Instagram\Api.php(361): Instagram\Transport\JsonMediaDetailedDataFeed->fetchData(Object(Instagram\Model\Media))
#2 C:\xampp2\htdocs\instagram\instagram-user-feed\examples\media-detailed.php(24): Instagram\Api->getMediaDetailed(Object(Instagram\Model\Media))
#3 {main}
thrown in C:\xampp2\htdocs\instagram\instagram-user-feed\vendor\pgrimaud\instagram-user-feed\src\Instagram\Transport\AbstractDataFeed.php on line 61
Fatal error: Uncaught Instagram\Exception\InstagramFetchException: Syntax error in C:\xampp2\htdocs\instagram\instagram-user-feed\vendor\pgrimaud\instagram-user-feed\src\Instagram\Transport\AbstractDataFeed.php:61
Stack trace:
#0 C:\xampp2\htdocs\instagram\instagram-user-feed\vendor\pgrimaud\instagram-user-feed\src\Instagram\Transport\JsonMediaDetailedDataFeed.php(21): Instagram\Transport\AbstractDataFeed->fetchJsonDataFeed('https://www.ins...')
#1 C:\xampp2\htdocs\instagram\instagram-user-feed\vendor\pgrimaud\instagram-user-feed\src\Instagram\Api.php(361): Instagram\Transport\JsonMediaDetailedDataFeed->fetchData(Object(Instagram\Model\Media))
#2 C:\xampp2\htdocs\instagram\instagram-user-feed\examples\media-detailed.php(24): Instagram\Api->getMediaDetailed(Object(Instagram\Model\Media))
#3 {main}
thrown in C:\xampp2\htdocs\instagram\instagram-user-feed\vendor\pgrimaud\instagram-user-feed\src\Instagram\Transport\AbstractDataFeed.php on line 61
I'm having the same problem, any results?
Same Here ....
same here
same here
i have found a solution for it but currently i am working on a project after finished it i will tell you how to fix it
Same here!
The request returns a response with status 200 but with an empty body.
Ive got the same issue since a couple of days ago. Is there a workaround for this because now my production site is down. Thanks!
I have experienced this several times just in the last week or two and was able to fix it by deleting the cache folder, which forces it to re-login and then it works. Would be nice for it to auto handle that if possible! just started in the past couple of weeks.
I have experienced this several times just in the last week or two and was able to fix it by deleting the cache folder, which forces it to re-login and then it works. Would be nice for it to auto handle that if possible! just started in the past couple of weeks.
This is a nice idea. Handle the issue and re-log the account automatically. 🔥
just a quick update here. our cached logged in session seems to be getting quietly expired almost on the daily. For now i am continuing to delete the cache folder and re-login via the app which works for a day or so.
@peterjohnhunt Thanks for sharing! Just solved my issues with login by deleting the cache.
Worked like charm! thank to everyone here. But still there is a question. If we have to clear the cache every time and re-login a lot of times does instagram ban us?