Php error wtf ?

ManiaControl, the completely new designed and easy to use controller managing all your Maniaplanet server.

Moderators: Jocy, Wabbitface, steeffeen, NADEO

RedEyes
Posts: 9
Joined: 25 Jun 2016, 01:04

Php error wtf ?

Post 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
User avatar
TMarc
Posts: 15441
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Php error wtf ?

Post 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...)?
User avatar
steeffeen
Translator
Translator
Posts: 2472
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Php error wtf ?

Post 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
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    farfa
    Nadeo
    Nadeo
    Posts: 601
    Joined: 14 Jun 2010, 16:15
    Location: In front of your hood with one lap late

    Re: Php error wtf ?

    Post by farfa »

    Are you using PHP 7 ?
    Since PHP 7 Errors handling has changed cf. http://php.net/manual/en/language.errors.php7.php
    Also known as: satanasdiabolo
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2472
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Php error wtf ?

    Post 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
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      RedEyes
      Posts: 9
      Joined: 25 Jun 2016, 01:04

      Re: Php error wtf ?

      Post 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 !
      RedEyes
      Posts: 9
      Joined: 25 Jun 2016, 01:04

      Re: Php error wtf ?

      Post by RedEyes »

      now i've connection interrupted during handskhake
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2472
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: Php error wtf ?

      Post 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
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        RedEyes
        Posts: 9
        Joined: 25 Jun 2016, 01:04

        Re: Php error wtf ?

        Post by RedEyes »

        if i can connect to my server the mania can too ? :p
        User avatar
        steeffeen
        Translator
        Translator
        Posts: 2472
        Joined: 14 Oct 2012, 16:22
        Location: Germany

        Re: Php error wtf ?

        Post 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?
          Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

          ManiaControl, FancyManiaLinks
          Post Reply

          Return to “ManiaControl”

          Who is online

          Users browsing this forum: No registered users and 0 guests