JorgenPhi / php-snapchat

A PHP library for the Snapchat API - With Commit History
MIT License
259 stars 73 forks source link

API returning error #79

Closed ali-layken closed 9 years ago

ali-layken commented 9 years ago

My account is not locked and my password and everything is correct. It's still returning this error:

PHP Notice: Undefined property: Snapchat::$cache in /home/username/Desktop/NHSO/src/snapchat.php on line 234

PHP Fatal error: Call to a member function get() on a non-object in /home/username/Desktop/NHSO/src/snapchat.php on line 234

hisham-albeik commented 9 years ago

The account might not be locked but the IP address you're connecting from might be blocked. Sometimes you an get blocked and not get the "ip address you connected from" error message. Also, if you haven't used it in a while you might be missing the header update that is either waiting for a pull request or recently merged. I think if you look at the github project and look in the pull requests you'll see the latest chnages. Again I'm not sure if it is merged yet, so you might need to look into closed requests if it was.

Also, it's no coincidence that you are getting it at the same time as another person who received the blocked IP address error message. I believe they do it in batches during certain intervals.

First try changing IP address, if you can't then maybe try connecting through a VPN, Tor, or a proxy. (Unsure how you would do it through a proxy)

Sent from my iPhone

On Jan 8, 2015, at 21:07, ahmed-usman notifications@github.com wrote:

My account is not locked and my password and everything is correct. It's still returning this error:

PHP Notice: Undefined property: Snapchat::$cache in /home/koopie/Desktop/NHSO/src/snapchat.php on line 234

PHP Fatal error: Call to a member function get() on a non-object in /home/koopie/Desktop/NHSO/src/snapchat.php on line 234

— Reply to this email directly or view it on GitHub.

DanMossa commented 9 years ago

I'm also getting an error made an issue #78 I'll try and figure something out and get back to you on it.

LinoSuarez commented 9 years ago

Just use this #80

hako commented 9 years ago

@Dgameman1 please try @LinoSuarez's fix and could you tell us if it works for you or not?

imlordeyaya commented 9 years ago

did it and it still does not work.

ThePengwin commented 9 years ago

@LinoSuarez : thanks, that has fixed things up for me for now.

Just a note though: I set up and watched the latest snapchat on android and instead of posting to /bq/login/ it is now posting to /loq/login. Im guessing in the future this may cause issues with logging in.

DanMossa commented 9 years ago

@hako @LinoSuarez Tried it and it still didn't work. Is there any way to use a proxy with this?

hako commented 9 years ago

@Dgameman1 what's your current setup? How are you running the php-snapchat library?

DanMossa commented 9 years ago

@hako On my website. I believe the website's IP is banned now =/

LinoSuarez commented 9 years ago

It's possible to use proxy -> stream_context_set_default(['http'=>['proxy'=>'proxy-host:proxy-port']]);

ali-layken commented 9 years ago

I found a fix. I used a different Device thing. I'm not sure I got it from somewhere else. My account wasn't blocked, Snapchat just wasn't letting me log in the same way I used to.

DanMossa commented 9 years ago

@LinoSuarez Do you know where I would add this information?