php-snapchat icon indicating copy to clipboard operation
php-snapchat copied to clipboard

Fatal Errors on using getSnaps();

Open Qfc9 opened this issue 9 years ago • 3 comments

So my program was running perfectly fine until about 3 days ago when suddenly these errors showed up. I did not change my code at all and I have re uploaded the original snapchat.php files to make sure I didn't mess those ones up. Do you have any ideas on what my problem is?

Fatal error: Call to a member function get() on a non-object in /homepages/15/d419114431/htdocs/bobink/snapchat/src/snapchat.php on line 317

Fatal error: Call to a member function get() on a non-object in /homepages/15/d419114431/htdocs/bobink/snapchat/src/snapchat.php on line 234

Qfc9 avatar Dec 26 '14 20:12 Qfc9

Same problem here. Tried digging down a bit, and I took out lines 233-238 from snapchat.php getUpdates function, and now it fails because of an invalid auth_token, so I'm guessing that's why $this->cache->get('updates') was making it fail as well.

Edit: Didn't see this pull request before. This fixes the issue: https://github.com/JorgenPhi/php-snapchat/pull/64

ghost avatar Dec 27 '14 18:12 ghost

I added the code from issue #64. I still have the same error.

Qfc9 avatar Dec 28 '14 02:12 Qfc9

Commit fe0dd1c9a16e453fa96947c5f865092c3828a070 seems to fix this error. Snapchat seem to be cracking down on third party applications, my account was locked for using a "third party app", unlocking the account required changing the password. I think they worked this out just by looking at the Snapchat version number, noticing that we're all using the same version, same phone model :)

liamjack avatar Dec 30 '14 02:12 liamjack