[XAseco2]Fatal PHP errors

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
ricoow
pedestrian
pedestrian
Posts: 8
Joined: 02 Apr 2010 13:21
Owned TM-games: TM2S, TM2C, TM2V

[XAseco2]Fatal PHP errors

Post by ricoow » 09 Feb 2014 12:05

Just installed the XAseco2 to a dedicated server but after finding some minor errors in the PHP files with include or require_once functions I now stumbled upon an error I can't solve by myself.
It is on line 1229 of xaseco2.php:

Code: Select all

	function registerEvent($event_type, $callback_func) {

		// registers a new event
		(1229) $this->events[$event_type] = $callback_func;
	}  // registerEvent
The reported error is:
Fatal error: Using $this when not in object context in C:\...\TM2\xaseco2\xaseco2.php on line 1229
Could anybody give me a hand on this issue?

askuri
road tourist
road tourist
Posts: 87
Joined: 21 Apr 2013 10:01
Owned TM-games: All except TMO
Location: Germany
Contact:

Re: [XAseco2]Fatal PHP errors

Post by askuri » 09 Feb 2014 14:04

Where you got your XAseco version from? Line 1229 looks different to me.
Try setting up fresh xaseco installation with this official zip: http://www.gamers.org/tm2/xaseco2_103.zip

ricoow
pedestrian
pedestrian
Posts: 8
Joined: 02 Apr 2010 13:21
Owned TM-games: TM2S, TM2C, TM2V

Re: [XAseco2]Fatal PHP errors

Post by ricoow » 09 Feb 2014 15:03

The original line is with [], I know that, do have the official 1.03. But that gave me the same errors removed the brackets as a test but forgot to re-add them.
Anyways no noticeable difference when using the official code

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1356
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XAseco2]Fatal PHP errors

Post by undef.de » 09 Feb 2014 17:08

A typical XAseco2 installation comes without any include or require_once failures. So there must be a strange problem at your side. Can you post the errors from the logfile?

Which PHP-Version do you have installed (try "php -v")? Which system (os)?
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

ricoow
pedestrian
pedestrian
Posts: 8
Joined: 02 Apr 2010 13:21
Owned TM-games: TM2S, TM2C, TM2V

Re: [XAseco2]Fatal PHP errors

Post by ricoow » 09 Feb 2014 18:22

The server doesn't even get started through XAseco, causing no logs.
OS is Win7 32-bit. PHP 5.3.1

EDIT;
There were 2 problems:
1) I kept everything in the xaseco2 map within the server directory.
2) There is a misplaced file, rasp.settings.php is in the main directory while it belongs in the includes directory.
Seems to be working now, however I am not 100% sure as I failed my SQL settings

ricoow
pedestrian
pedestrian
Posts: 8
Joined: 02 Apr 2010 13:21
Owned TM-games: TM2S, TM2C, TM2V

Re: [XAseco2]Fatal PHP errors

Post by ricoow » 09 Feb 2014 18:39

I got two further questions:
1) These HUD's on left and right for records etc dont show up, how can I configure this properly to get them to show up?
2) Not XAseco2 related but you guys will know the answer I'm sure: I have set my gamemode to 1, which should be time attack, but it still is Rounds, anybody knows what I am doing wrong?

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1356
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XAseco2]Fatal PHP errors

Post by undef.de » 09 Feb 2014 18:55

ricoow wrote:The server doesn't even get started through XAseco, causing no logs.
OS is Win7 32-bit. PHP 5.3.1

EDIT;
There were 2 problems:
1) I kept everything in the xaseco2 map within the server directory.
2) There is a misplaced file, rasp.settings.php is in the main directory while it belongs in the includes directory.
Seems to be working now, however I am not 100% sure as I failed my SQL settings
You where started wrong. ;) Just see http://www.gamers.org/tm2/quickstart.html at "Secondly, the XASECO2 system" and position no. 3.
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1356
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XAseco2]Fatal PHP errors

Post by undef.de » 09 Feb 2014 19:02

ricoow wrote:I got two further questions:
1) These HUD's on left and right for records etc dont show up, how can I configure this properly to get them to show up?
You need to install a plugin for the Widgets: Records-Eyepiece (recommended) or Fufi.Widgets (not under development, freezed).
ricoow wrote: 2) Not XAseco2 related but you guys will know the answer I'm sure: I have set my gamemode to 1, which should be time attack, but it still is Rounds, anybody knows what I am doing wrong?
The Gamemode only change on a map change. But if you have set it only in the MatchSettings-File, then you need to load them with "/admin readmaplist" and then skip to the next map.
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

Post Reply