Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error accessing private property ProtocolNode::$data #467

Closed
mgp25 opened this issue Sep 12, 2013 · 2 comments
Closed

Error accessing private property ProtocolNode::$data #467

mgp25 opened this issue Sep 12, 2013 · 2 comments
Labels

Comments

@mgp25
Copy link
Contributor

mgp25 commented Sep 12, 2013

Hi, im testing with exampleFunctional.php

PHP Version => 5.3.15

If i run the script on web server i get this error:
Parse error: syntax error, unexpected T_STATIC in …/src/php/whatsprot.class.php on line 89

If i run the script in Terminal i get this one:
Fatal error: Cannot access private property ProtocolNode::$data in /.../src/php/exampleFunctional.php on line 103

When i run the script, i get the message send by
$w->sendMessage($target, "Sent from WhatsApi at " . time());

and thats all, i cant receive or send messages.

any solution?

Thanks!

@shirioko
Copy link
Contributor

Are you sure about that? Can you run phpinfo() to check it? :)

"Fatal error: Cannot access private property ProtocolNode::$data in /.../src/php/exampleFunctional.php on line 103"
I recently made all ProtocolNode properties private and added getter methods :)

See the commit I pushed

@mgp25
Copy link
Contributor Author

mgp25 commented Sep 12, 2013

mgp25$ php -i
phpinfo()
PHP Version => 5.3.15

Yep, i run phpinfo() i just copied and pasted the PHP version :P

Anyway, now it works perfect with the update

thanks :)

@mgp25 mgp25 closed this as completed Sep 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants