Page 1 of 1

ManiaLive 2.5 Bug?

Posted: 21 Dec 2012, 12:23
by tatar
Hi,
The new manialive 2.5 failed at lunch on my systems.

I just noticed those two functions are not declared as it should :

Code: Select all

	function getHalign()
	{
		return $this->halign;
	}

	function getValign()
	{
		return $this->valign;
	}
I fixed the problem by re declaring :

Code: Select all

	function getHalign($default = null)
	{
		return $this->halign ? : $default;
	}

	function getValign($default = null)
	{
		return $this->Valign ? : $default;
	}
Was I the only one with the problem? Was it the good fix? Manialive seems fine to me after this fix.

Thanks.

Re: ManiaLive 2.5 Bug?

Posted: 21 Dec 2012, 13:02
by The_Big_Boo
Problem comes from an error in ManiaLib, which has been fixed (actually these 2 methods shouldn't redeclared at all) but the version used in ManiaLive is a just bit too old...

Re: ManiaLive 2.5 Bug?

Posted: 21 Dec 2012, 19:37
by tatar
So the right way to make manialive 2.5 work is just to replace manialib folder with latest manialib version?
Thanks.

Re: ManiaLive 2.5 Bug?

Posted: 21 Dec 2012, 20:14
by The_Big_Boo
You need the latest SVN revision (r769). The latest official release (ManiaLib 3.0) is older than the version used by ManiaLive (which is 3.1). So the right way is still to remove the 2 redeclarations.

Btw, if anybody wonders why they doesn't get this issue, it happens only with PHP 5.4 and higher.

Re: ManiaLive 2.5 Bug?

Posted: 02 Jan 2013, 20:34
by TatharNuar
Is this bug also fixed in ManiaLive 2.5.1? I'd like to be sure.

Re: ManiaLive 2.5 Bug?

Posted: 02 Jan 2013, 22:29
by The_Big_Boo
Indeed, it's fixed in 2.5.1.