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

JAXL undefined variable client running with jaxlctl debug sock_file_name #50

Closed
ghoulich opened this issue Oct 8, 2014 · 2 comments
Closed

Comments

@ghoulich
Copy link

ghoulich commented Oct 8, 2014

I am trying to start a JAXL daemon by running JAXL's echo_bot.php.

It's working as I expected. The sock file is generated under .jaxl/sock/.

Then I use jaxl attach the sock file which I got from running echo_bot.php. I tried to run the example given here. But I get below error message when trying jaxlctl debug. It complains undefined variable, client Could you point me where I am wrong? Thanks!

$ ./jaxlctl debug .jaxl/sock/jaxl_3961
jaxl_socket_client:95 - 2014-04-30 10:39:55 - trying unix://.jaxl/sock/jaxl_3961
jaxl 2> global $client;
jaxl 3> $client->send_chat_msg('[email protected]', 'Hello JAXL');
jaxl_socket_client:175 - 2014-04-30 10:40:43 - socket eof, disconnecting

jaxl 1> jaxl_exception:48 - 2014-04-30 10:40:43 - got jaxl exception construct with Undefined variable: client, 8, /to_my_path/JAXL-3.x/jaxl.php(458) : eval()'d code, 1

@abhinavsingh
Copy link
Member

Can you give it a try using ./jaxlctl attach pid workflow? Essentially what just happened above is that your two lines on CLI 2> and 3> were executed independently. Hence, 2> succeeded but 3> failed to see the global $client you imported in 2>.

See if attach helps and if not try putting your commands in a single line, hopefully this will atleast unblock you.

@frost-nzcr4
Copy link
Contributor

Duplicates #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants