{"action":"opened","issue":{"url":"https://api.github.com/repos/mgp25/Chat-API/issues/2050","repository_url":"https://api.github.com/repos/mgp25/Chat-API","labels_url":"https://api.github.com/repos/mgp25/Chat-API/issues/2050/labels{/name}","comments_url":"https://api.github.com/repos/mgp25/Chat-API/issues/2050/comments","events_url":"https://api.github.com/repos/mgp25/Chat-API/issues/2050/events","html_url":"https://github.com/mgp25/Chat-API/issues/2050","id":163164662,"number":2050,"title":"Error trying to run example registerTool.php","user":{"login":"apoorvumang","id":1957903,"avatar_url":"https://avatars.githubusercontent.com/u/1957903?v=3","gravatar_id":"","url":"https://api.github.com/users/apoorvumang","html_url":"https://github.com/apoorvumang","followers_url":"https://api.github.com/users/apoorvumang/followers","following_url":"https://api.github.com/users/apoorvumang/following{/other_user}","gists_url":"https://api.github.com/users/apoorvumang/gists{/gist_id}","starred_url":"https://api.github.com/users/apoorvumang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apoorvumang/subscriptions","organizations_url":"https://api.github.com/users/apoorvumang/orgs","repos_url":"https://api.github.com/users/apoorvumang/repos","events_url":"https://api.github.com/users/apoorvumang/events{/privacy}","received_events_url":"https://api.github.com/users/apoorvumang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-30T13:25:22Z","updated_at":"2016-06-30T13:25:22Z","closed_at":null,"body":"Make sure these boxes are checked before submitting your issue -- thank you!\r\n\r\n\r\n- [x] You are using PHP > 5.6\r\n- [x] You have installed all extensions and modules listed in [here](https://github.com/mgp25/Chat-API/wiki/Dependencies). PHP Protobuf and Curve25519 are required!\r\n- [x] You have checked if someone has already asked the same issue you have.\r\n- [x] You have read the [wiki](https://github.com/mgp25/Chat-API/wiki).\r\n- [x] Is not a programming question.\r\n- [x] You are using latest Chat API code.\r\n\r\n\r\n### Error\r\nPost your error below:\r\n\r\nI'm using registerTool.php but it shows a weird error \r\n\r\n```\r\nPHP Notice:  Trying to get property of non-object in /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/src/Registration.php on line 285\r\n```\r\n\r\n### Debug log\r\nPost your debug log below:\r\n\r\n```xml\r\n\r\n➜  examples php registerTool.php \r\n####################\r\n#                  #\r\n# WA Register Tool #\r\n#                  #\r\n####################\r\n\r\n\r\nUsername (country code + number, do not use + or 00): 919717585207\r\n\r\n\r\nType sms or voice: sms \r\nArray\r\n(\r\n    [cc] => 91\r\n    [in] => 9717585207\r\n    [lg] => hi\r\n    [lc] => IN\r\n    [id] => .????vdc??es??&)$80\r\n    [token] => 6x+C+2F0a0fwSuuMH0mqsLL0vSQ=\r\n    [mistyped] => 6\r\n    [network_radio_type] => 1\r\n    [simnum] => 1\r\n    [s] => \r\n    [copiedrc] => 1\r\n    [hasinrc] => 1\r\n    [rcmatch] => 1\r\n    [pid] => 7769\r\n    [rchash] => cff51951e2248f278727d02670c6904102600b326b7d20e4a9901644a2e9ee37\r\n    [anhash] => 8390a43363da411661912ab01c49f9b5\r\n    [extexist] => 1\r\n    [extstate] => 1\r\n    [mcc] => 404\r\n    [mnc] => 000\r\n    [sim_mcc] => 404\r\n    [sim_mnc] => 000\r\n    [method] => sms\r\n)\r\nPHP Notice:  Trying to get property of non-object in /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/src/Registration.php on line 271\r\nPHP Stack trace:\r\nPHP   1. {main}() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:0\r\nPHP   2. Registration->codeRequest() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:28\r\n\r\nNotice: Trying to get property of non-object in /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/src/Registration.php on line 271\r\n\r\nCall Stack:\r\n    0.0002     236704   1. {main}() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:0\r\n    8.9639     445488   2. Registration->codeRequest() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:28\r\n\r\nPHP Notice:  Trying to get property of non-object in /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/src/Registration.php on line 285\r\nPHP Stack trace:\r\nPHP   1. {main}() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:0\r\nPHP   2. Registration->codeRequest() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:28\r\n\r\nNotice: Trying to get property of non-object in /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/src/Registration.php on line 285\r\n\r\nCall Stack:\r\n    0.0002     236704   1. {main}() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:0\r\n    8.9639     445488   2. Registration->codeRequest() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:28\r\n\r\nPHP Notice:  Trying to get property of non-object in /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/src/Registration.php on line 311\r\nPHP Stack trace:\r\nPHP   1. {main}() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:0\r\nPHP   2. Registration->codeRequest() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:28\r\n\r\nNotice: Trying to get property of non-object in /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/src/Registration.php on line 311\r\n\r\nCall Stack:\r\n    0.0002     236704   1. {main}() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:0\r\n    8.9639     445488   2. Registration->codeRequest() /Library/WebServer/Documents/wa/vendor/whatsapp/chat-api/examples/registerTool.php:28\r\n\r\nThere was a problem trying to request the code.\r\n```\r\n"}}
{"actor":{"display_login":"apoorvumang"}}