venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.14k forks source link

[reason] => old_version Error #1087

Open anymediasolutions opened 9 years ago

anymediasolutions commented 9 years ago

I downloaded the latest code from here and tried to request the code using $w->codeRequest('sms');. But I am getting the following error:

Object ( [status] => fail [reason] => old_version ) Notice: Undefined property: stdClass::$param in F:\xampp\htdocs\WhatsAPI-master\src\whatsprot.class.php on line 357

Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to request the code.' in F:\xampp\htdocs\WhatsAPI-master\src\whatsprot.class.php:359 Stack trace: #0 F:\xampp\htdocs\WhatsAPI-master\examples\exampleRegister.php(49): WhatsProt->codeRequest('sms') #1 {main} thrown in F:\xampp\htdocs\WhatsAPI-master\src\whatsprot.class.php on line 359.

Please help me out with this issue.

Thanks

mgp25 commented 9 years ago

@anymediasolutions use WhatsAPI Official code. https://github.com/mgp25/WhatsAPI-Official