Ivan Cézanne Ivan Cézanne - 1 month ago 6
PHP Question

XMPP (XMPPHP) session won't start

Fellows I'm working in a new server and, at first, it looks all good. The eJabberd webadmin runs OK and I was able to even create an user by that interface.

The situation is, the same application that usually ran on my previous server freezes at the waiting for the session to start, the code:


works fine but it seems that the session can't be set. Any suggestions for where or what I should go take a look first?


  • The XMPP application has been set the same way than was in the older server.

Here is the whole code:

$this->lnk = new XMPPHP_XMPP($this->config['host'],
$printlog = false,
$loglevel = XMPPHP_Log::LEVEL_VERBOSE);





The issue was caused by $this->lnk->useEncryption(true);. Since my new server hadn't proper SSL/TLS settings, this line caused the freezing of the code. Possible solvings are disabling encryption and adjusting you SSL/TLS credentials.