Page 1 of 1

[2.2.2] Issue with onBeginMatch, onEndMatch

Posted: 14 Aug 2012, 13:26
by w1lla
Hi,

with the latest dedicated version 13-08-2012 and manialive version 2.2.2

i always get errors on line 63/64 on Event.php

Code: Select all

Occured on 14.08.2012 at 15:52:13 at process with ID #9915
    ---------------------------------
 -> ErrorException with code 8
    Undefined offset: 0
  - in /root/sm/manialive/libraries/ManiaLive/DedicatedApi/Callback/Event.php on line 63
  - Stack: #0 /root/sm/manialive/libraries/ManiaLive/DedicatedApi/Callback/Event.php(63): ManiaLive\Application\ErrorHandling::createExceptionFromError(8, 'Undefined offse...', '/root/sm/manial...', 63, Array)
           #1 /root/sm/manialive/libraries/ManiaLive/Event/Dispatcher.php(58): ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLivePlugins\MLEPP\Admin\Plugin))
           #2 /root/sm/manialive/libraries/ManiaLive/Application/AbstractApplication.php(115): ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callback\Event))
           #3 /root/sm/manialive/bootstrapper.php(67): ManiaLive\Application\AbstractApplication->run()
           #4 {main}
It seems the Event callbacks aren't properly fixed where everytime Manialive crashes on SM.

Edit 1:
Just replace all current onBeginMatch and onEndMatch with:

Code: Select all

function onBeginMatch() {}
	function onEndMatch($rankings) {}
That has fixed my problem.

with kind regards,

w1lla.

Re: [2.2.2] Issue with onBeginMatch, onEndMatch

Posted: 14 Aug 2012, 13:56
by The_Big_Boo
Already fixed that this morning but I did not commit changes yet ;)

Thanks for reporting anyway :)

Re: [2.2.2] Issue with onBeginMatch, onEndMatch

Posted: 14 Aug 2012, 13:58
by w1lla
no problem. Just doing a duty on a report ;)