Page 1 of 2

Php error wtf ?

Posted: 29 Jun 2016, 19:36
by RedEyes
Launchin' ManiaControl and have this :
[29-Jun-2016 12:23:07 UTC] Starting ManiaControl...
[29-Jun-2016 12:23:07 UTC] Checking for minimum required PHP-Version 5.4 ... 5.4 OK!
[29-Jun-2016 12:23:07 UTC] Checking for installed MySQLi ... FOUND!
[29-Jun-2016 12:23:07 UTC] Checking for installed cURL ... FOUND!
[29-Jun-2016 12:23:07 UTC] Checking for installed Zlib ... FOUND!
[29-Jun-2016 12:23:07 UTC] Loading ManiaControl v0.163 ...
[29-Jun-2016 12:23:07 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to ManiaControl\ErrorHandler::handleException() must be an instance of Exception, instance of Error given in /home/imgs/Desktop/ManiaControl-master/core/ErrorHandler.php:407
Stack trace:
#0 [internal function]: ManiaControl\ErrorHandler->handleException(Object(Error))
#1 {main}
thrown in /home/imgs/Desktop/ManiaControl-master/core/ErrorHandler.php on line 407
[29-Jun-2016 12:23:07 UTC] [PHP ERROR]: Uncaught TypeError: Argument 1 passed to ManiaControl\ErrorHandler::handleException() must be an instance of Exception, instance of Error given in /home/imgs/Desktop/ManiaControl-master/core/ErrorHandler.php:407
Stack trace:
#0 [internal function]: ManiaControl\ErrorHandler->handleException(Object(Error))
#1 {main}
thrown
File&Line: /home/imgs/Desktop/ManiaControl-master/core/ErrorHandler.php: 407
[29-Jun-2016 12:23:07 UTC] PHP Fatal error: Uncaught Error: Call to undefined function ManiaControl\Utils\mb_convert_encoding() in /home/imgs/Desktop/ManiaControl-master/core/Utils/Formatter.php:206
Stack trace:
#0 /home/imgs/Desktop/ManiaControl-master/core/Utils/Formatter.php(199): ManiaControl\Utils\Formatter::utf8('Error')
#1 /home/imgs/Desktop/ManiaControl-master/core/ErrorHandler.php(147): ManiaControl\Utils\Formatter::utf8(Array)
#2 /home/imgs/Desktop/ManiaControl-master/core/ErrorHandler.php(395): ManiaControl\ErrorHandler->handleError(1, 'Uncaught TypeEr...', '/home/imgs/Desk...', 407, Array, true)
#3 [internal function]: ManiaControl\ErrorHandler->handleShutdown()
#4 {main}
thrown in /home/imgs/Desktop/ManiaControl-master/core/Utils/Formatter.php on line 206

Re: Php error wtf ?

Posted: 29 Jun 2016, 21:09
by TMarc
apparently Argument 1 is wrong?

If you don't show what you did in more detail, nobody will be able to help you.
Did you compare your settings with settings mentioned in tutorials or example configuration?

Does your dedicated server also run without Maniacontrol (check the basics first...)?

Re: Php error wtf ?

Posted: 30 Jun 2016, 08:24
by steeffeen
has it been working before? what did you change?

it can't find the PHP function mb_convert_encoding
[29-Jun-2016 12:23:07 UTC] PHP Fatal error: Uncaught Error: Call to undefined function ManiaControl\Utils\mb_convert_encoding() in /home/imgs/Desktop/ManiaControl-master/core/Utils/Formatter.php:206
if you changed your PHP configuration beforehand or if this has been your first try to start ManiaControl, make sure that the extension 'mbstring.so' is (still) enabled

Re: Php error wtf ?

Posted: 30 Jun 2016, 09:21
by farfa
Are you using PHP 7 ?
Since PHP 7 Errors handling has changed cf. http://php.net/manual/en/language.errors.php7.php

Re: Php error wtf ?

Posted: 30 Jun 2016, 13:24
by steeffeen
he's using php 5.4
[29-Jun-2016 12:23:07 UTC] Checking for minimum required PHP-Version 5.4 ... 5.4 OK!
again, it's not about some kind of error handling but about a missing PHP function which is usually compiled-in

Re: Php error wtf ?

Posted: 30 Jun 2016, 14:24
by RedEyes
Didn't change anything to php. I've php7.1. I take ManiaControl and only change the server.xml with my conf. (mysql etc...).

I'm gonna see for the functions, thx !

FIX : Ok reinstalling PHP change the errors !

Re: Php error wtf ?

Posted: 30 Jun 2016, 14:43
by RedEyes
now i've connection interrupted during handskhake

Re: Php error wtf ?

Posted: 30 Jun 2016, 15:00
by steeffeen
does the log say 'PHP version 7.1' now? (maybe the log output isn't correct because it said 5.4 :? though that could have been because of the seemingly corrupt installation)

'connection interrupted during handshake' basically says that ManiaControl couldn't connect at all, so your server isn't reachable from the machine on which you're running MC
check the ports of your maniaplanet server, its machine's firewall and the ports in the MC configuration

Re: Php error wtf ?

Posted: 30 Jun 2016, 17:12
by RedEyes
if i can connect to my server the mania can too ? :p

Re: Php error wtf ?

Posted: 30 Jun 2016, 20:05
by steeffeen
not necessarily, the maniaplanet clients use different ports than server controllers
Especially because the maniaplanet server config might prevent controller connections from other locations than localhost, are you running ManiaControl on the same machine as the maniaplanet server?