xmppo / xmpp-php

PHP client library for XMPP (Jabber) protocol
https://github.com/xmppo/xmpp-php
MIT License
45 stars 23 forks source link

Fatal error: Uncaught TypeError #14

Closed mhmtz closed 4 years ago

mhmtz commented 4 years ago

I get the following error while texting. Why?

Fatal error: Uncaught TypeError: Return value of Norgul\Xmpp\XmppClient::initDependencies() must be an instance of Norgul\Xmpp\void, none returned in /home/domain/public_html/src/XmppClient.php:51 Stack trace: #0 /home/domain/public_html/c2msj/src/XmppClient.php(43): Norgul\Xmpp\XmppClient->initDependencies() #1 /home/cplusxyz/public_html/index.php(19): Norgul\Xmpp\XmppClient->__construct(Object(Norgul\Xmpp\Options)) #2 /home/domain/public_html/index.php(114): Norgul\Xmpp\test('mhmtz', 'anon-a0ffd6926c...', '557b2a84cc1f64c...', 'hello') #3 {main} thrown in /home/domain/public_html/src/XmppClient.php on line 51

Norgul commented 4 years ago

Which version of PHP are you running?

mhmtz commented 4 years ago

Current PHP version: 7.3, I've tried upload again and chancge php version 7.3, 7.4 and 7.1 . It works on localhost. but it doesn't work on the my web site host. different error

Warning: stream_socket_client(): unable to connect to tcp://m.mychat.com:5222 (Connection refused) in /home/plushile/public_html/chat/src/Socket.php on line 29

Warning: socket_strerror() has been disabled for security reasons in /home/plushile/public_html/chat/src/Exceptions/DeadSocket.php on line 13

Norgul commented 4 years ago

Do you have some domain disabled functions on your production? Something like this?

mhmtz commented 4 years ago

Thank you master, it work.