[Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

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
c0xcopi
pedestrian
pedestrian
Posts: 5
Joined: 07 Jul 2021 18:13
Owned TM-games: TMNF

[Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by c0xcopi » 07 Jul 2021 18:19

Whenever I try to run the Aseco.sh, and then look at the logfile.txt, I can see

Code: Select all

[XAseco] PHP Version is 7.3.27-1~deb10u1 on Linux
[XAseco] Load settings [config.xml]
but then it stops. I took a look at the aseco.log file, and there is a 'PHP Fatal error':

Code: Select all

# initialize XASECO ###########################################################
[XAseco] PHP Version is 7.3.27-1~deb10u1 on Linux
[XAseco] Load settings [config.xml]
PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php:29
Stack trace:
#0 /home/game/TRACKMANIA/xaseco/aseco.php(220): Examsly->parseXml('config.xml', true, false)
#1 /home/game/TRACKMANIA/xaseco/aseco.php(697): Aseco->loadSettings('config.xml')
#2 /home/game/TRACKMANIA/xaseco/aseco.php(2561): Aseco->run('config.xml')
#3 {main}
  thrown in /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php on line 29
I am not sure where this issue comes from and how I would go about fixing it, but any help would be greatly appreciated! :thumbsup:

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 278
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by L3cKy » 07 Jul 2021 20:58

c0xcopi wrote:
07 Jul 2021 18:19
Whenever I try to run the Aseco.sh, and then look at the logfile.txt, I can see

Code: Select all

[XAseco] PHP Version is 7.3.27-1~deb10u1 on Linux
[XAseco] Load settings [config.xml]
but then it stops. I took a look at the aseco.log file, and there is a 'PHP Fatal error':

Code: Select all

# initialize XASECO ###########################################################
[XAseco] PHP Version is 7.3.27-1~deb10u1 on Linux
[XAseco] Load settings [config.xml]
PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php:29
Stack trace:
#0 /home/game/TRACKMANIA/xaseco/aseco.php(220): Examsly->parseXml('config.xml', true, false)
#1 /home/game/TRACKMANIA/xaseco/aseco.php(697): Aseco->loadSettings('config.xml')
#2 /home/game/TRACKMANIA/xaseco/aseco.php(2561): Aseco->run('config.xml')
#3 {main}
  thrown in /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php on line 29
I am not sure where this issue comes from and how I would go about fixing it, but any help would be greatly appreciated! :thumbsup:
Look's like you don't have a xml parser installed. ;)
Use this command over remote console with root rights:

Code: Select all

sudo apt install php-xml
If you have a apache server installed you need to restart the apache after php module installation.

Code: Select all

sudo service apache2 restart
So long L3cKy
Last edited by L3cKy on 08 Jul 2021 13:22, edited 1 time in total.

Xymph
Pit Crew
Pit Crew
Posts: 5751
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: [Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by Xymph » 08 Jul 2021 11:31

L3cKy wrote:
07 Jul 2021 20:58
You need to restart the apache after installation.

Code: Select all

sudo service apache2 restart
Nah, Xaseco1/2 doesn't use Apache.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 278
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by L3cKy » 08 Jul 2021 12:06

Xymph wrote:
08 Jul 2021 11:31
L3cKy wrote:
07 Jul 2021 20:58
You need to restart the apache after installation.

Code: Select all

sudo service apache2 restart
Nah, Xaseco1/2 doesn't use Apache.
If you install a new php module on the server it requires a apache restart before the module will be loaded. ;)
This have nothing to do with Xaseco.

So Long L3cKy

Xymph
Pit Crew
Pit Crew
Posts: 5751
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: [Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by Xymph » 08 Jul 2021 12:33

L3cKy wrote:
08 Jul 2021 12:06
If you install a new php module on the server it requires a apache restart before the module will be loaded. ;)
This have nothing to do with Xaseco.
Yes, but nothing in the OP refers to any web server so it's irrelevant to the topic. :wink:
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 278
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by L3cKy » 08 Jul 2021 13:20

Xymph wrote:
08 Jul 2021 12:33
L3cKy wrote:
08 Jul 2021 12:06
If you install a new php module on the server it requires a apache restart before the module will be loaded. ;)
This have nothing to do with Xaseco.
Yes, but nothing in the OP refers to any web server so it's irrelevant to the topic. :wink:
Well, now i understood what you mean. ^^
No need to restart apache if there is non installed ... i have changed my post. :roll:
Thx for the hint.

So long L3cKy

c0xcopi
pedestrian
pedestrian
Posts: 5
Joined: 07 Jul 2021 18:13
Owned TM-games: TMNF

Re: [Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by c0xcopi » 08 Jul 2021 15:25

L3cKy wrote:
07 Jul 2021 20:58
Use this command over remote console with root rights:

Code: Select all

sudo apt install php-xml
If you have a apache server installed you need to restart the apache after php module installation.

Code: Select all

sudo service apache2 restart
So long L3cKy
This worked for resolving the error, however I'm now faced with:

Code: Select all

[PHP Warning] Illegal string offset 'TMLOGIN' on line 77 in file /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php
PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php:77
Stack trace:
#0 [internal function]: Examsly->closeTag(Resource id #14, 'TMLOGIN')
#1 /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php(44): xml_parse(Resource id #14, '<?xml version="...')
#2 /home/game/TRACKMANIA/xaseco/aseco.php(220): Examsly->parseXml('config.xml', true, false)
#3 /home/game/TRACKMANIA/xaseco/aseco.php(697): Aseco->loadSettings('config.xml')
#4 /home/game/TRACKMANIA/xaseco/aseco.php(2561): Aseco->run('config.xml')
#5 {main}
  thrown in /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php on line 77
I installed the xml parser like you said.

PS: Yes its a webserver, propably should've pointed that out :wink:

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 278
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by L3cKy » 08 Jul 2021 15:42

c0xcopi wrote:
08 Jul 2021 15:25
This worked for resolving the error, however I'm now faced with:

Code: Select all

[PHP Warning] Illegal string offset 'TMLOGIN' on line 77 in file /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php
PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php:77
Stack trace:
#0 [internal function]: Examsly->closeTag(Resource id #14, 'TMLOGIN')
#1 /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php(44): xml_parse(Resource id #14, '<?xml version="...')
#2 /home/game/TRACKMANIA/xaseco/aseco.php(220): Examsly->parseXml('config.xml', true, false)
#3 /home/game/TRACKMANIA/xaseco/aseco.php(697): Aseco->loadSettings('config.xml')
#4 /home/game/TRACKMANIA/xaseco/aseco.php(2561): Aseco->run('config.xml')
#5 {main}
  thrown in /home/game/TRACKMANIA/xaseco/includes/xmlparser.inc.php on line 77
I installed the xml parser like you said.

PS: Yes its a webserver, propably should've pointed that out :wink:
Take a look here

c0xcopi
pedestrian
pedestrian
Posts: 5
Joined: 07 Jul 2021 18:13
Owned TM-games: TMNF

Re: [Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by c0xcopi » 08 Jul 2021 16:46

L3cKy wrote:
08 Jul 2021 15:42

Take a look here
It seems that I need to downgrade PHP from my 7.x version to a 5.x version, however the old PHP versions seem to not be installable, do you have a link or a tip on how to do that, if its even possible?

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 278
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [Xaseco] Aseco not starting correctly, PHP Fatal Error in aseco.log

Post by L3cKy » 08 Jul 2021 17:06

c0xcopi wrote:
08 Jul 2021 16:46
L3cKy wrote:
08 Jul 2021 15:42

Take a look here
It seems that I need to downgrade PHP from my 7.x version to a 5.x version, however the old PHP versions seem to not be installable, do you have a link or a tip on how to do that, if its even possible?
Modernizer can be an option. ;)

Post Reply