TIPS XML Error?

thepainter

Member
Joined
May 30, 2013
Messages
33
Reaction score
4
All was running smoothly until I rebooted the system and then got this when I tried to sign in on the webpage. I also noticed that it said Asterisk DN when I booted up ....... please say there is an easy fix for this.

Thanks in advance

XML error: Not well-formed (invalid token) at line 1

Trace Back

/var/www/html/admin/libraries/xml2Array.class.php:50 die_freepbx()
[0]: XML error: Not well-formed (invalid token) at line 1

/var/www/html/admin/libraries/xml2Array.class.php:136 xml2Array->parse()
[0]:

/var/www/html/admin/libraries/xml2Array.class.php:34 xml2Array->parseAdvanced()
[0]:

/var/www/html/admin/libraries/module.functions.php:1364 xml2Array->xml2Array()
[0]:

/var/www/html/admin/libraries/module.functions.php:380 _module_readxml()
[0]: featurecodeadmin

/var/www/html/admin/libraries/utility.functions.php:1487 module_getinfo()
[0]:
[1]: 2

/var/www/html/admin/libraries/utility.functions.php:1463 _bootstrap_parse_hooks()

/var/www/html/admin/bootstrap.php:159 bootstrap_include_hooks()
[0]: pre_module_load
[1]: all_mods

/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php

/var/www/html/admin/config.php:109 include_once()
[0]: /etc/freepbx.conf
 
post the content of
/var/www/html/admin/modules/featurecodeadmin/module.xml

then if you want to be able to login:
mv /var/www/html/admin/modules/featurecodeadmin/ /root/featurecodeadmin/
amportal restart
amportal a r
 
Not sure what this means, but it's Greek to me. Do I need to get rid of this?..... and how did it get there?

Thanks

fiïúx!yõ£¨¥º,œ
¸"

-N;äë†|§l!)é∏ ¡Õ ◊‰*+:
YYg¡»Ÿy· 

 Are you sure you wish to proceed?DefaultDisabledEnabledFeatureFeature Code AdminFeature Code Conflicts with other ExtensionsFeature CodesFeature Codes have been duplicatedFeaturecode: Please enter a Feature Code or check Use Default for all Enabled Feature CodesStatusSubmit ChangesUseYou have feature code conflicts with extension numbers in other modules. This will result in unexpected and broken behavior.Project-Id-Version: FreePBX featurecodeadmin
Report-Msgid-Bugs-To:
POT-Creation-Date: 2011-09-23 09:52+0000
PO-Revision-Date: 2008-09-17 10:00+0100
Last-Translator: Mikael Carlsson <[email protected]>
Language-Team:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Poedit-Language: Swedish
X-Poedit-Country: SWEDEN
Är du säker på att du vill fortsätta?standardAvaktiveradAktiveradFunktionskodFunktionskodsadministrationFunktionskoden är samma som en anknytningFunktionskoderFunktionskoden är en dubblettFunktionskod:Skriv in en funktionskod eller välj Använd standard för alla aktiverade funktionskoderStatusSpara ändringarAnvändDu har valt en funktionskod med samma siffror som en anknytning. Detta kommer INTE att fungera, välj annan funktionskod.
 
Are you from sweden?
You are using a web content filter somewhere through a proxy or your router or externally hosted web content filter.
This filter is messing stuff up.
You would have to disable that or make sure that freepbx servers where updates and download come from are excluded from content filtering.
 
No, I'm not from Sweden. Not sure where this came from. For the fix, do I delete the module.xml and login
then if you want to be able to login:
mv /var/www/html/admin/modules/featurecodeadmin/ /root/featurecodeadmin/
amportal restart
amportal a r

Thanks for the Help, much appreciated-sorry but I'm totally new to this.
 
Tried to log in using
mv /var/www/html/admin/modules/featurecodeadmin/ /root/featurecodeadmin/
amportal restart
amportal a r

I now get
FATAL ERROR

XML error: Not well-formed (invalid token) at line 1

Trace Back

/var/www/html/admin/libraries/xml2Array.class.php:50 die_freepbx()
[0]: XML error: Not well-formed (invalid token) at line 1

/var/www/html/admin/libraries/xml2Array.class.php:136 xml2Array-&gt;parse()
[0]:

/var/www/html/admin/libraries/xml2Array.class.php:34 xml2Array-&gt;parseAdvanced()
[0]:

/var/www/html/admin/libraries/module.functions.php:1364 xml2Array-&gt;xml2Array()
[0]:

/var/www/html/admin/libraries/module.functions.php:380 _module_readxml()
[0]: parking

/var/www/html/admin/libraries/utility.functions.php:1487 module_getinfo()
[0]:
[1]: 2

/var/www/html/admin/libraries/utility.functions.php:1463 _bootstrap_parse_hooks()

/var/www/html/admin/bootstrap.php:159 bootstrap_include_hooks()
[0]: pre_module_load
[1]: all_mods

/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php

/var/www/html/admin/config.php:109 include_once()
[0]: /etc/freepbx.conf

no more 'featurecodeadmin' folder. Any other suggestions?

Thanks
 
Meaning you have more than one XML file that is completely corrupted.
But you ignored the most important part:
You are using a web content filter somewhere through a proxy or your router or externally hosted web content filter.
This filter is messing stuff up.
You would have to disable that or make sure that freepbx servers where updates and download come from are excluded from content filtering.

Something between you and the internet is corrupting the files that the PBX is downloading, in this case XML files.
You're not the first one, post about that can be found on FreePBX site.

SonicWall? Or any other web content/firewall/proxy....
 
OK, checked router and found my pi was sharing the same ip address when i rebooted, not sure how as I had set it as the preferred address for my raspberry pi mac address. I'm hoping that was what had caused the problem. However I still can't get my asterisk up. Is there some other way to "un corrupt/renew the xml files"? My latest error message is
FATAL ERROR

XML error: Not well-formed (invalid token) at line 1

Trace Back

/var/www/html/admin/libraries/xml2Array.class.php:50 die_freepbx()
[0]: XML error: Not well-formed (invalid token) at line 1

/var/www/html/admin/libraries/xml2Array.class.php:136 xml2Array-&gt;parse()
[0]:

/var/www/html/admin/libraries/xml2Array.class.php:34 xml2Array-&gt;parseAdvanced()
[0]:

/var/www/html/admin/libraries/module.functions.php:1364 xml2Array-&gt;xml2Array()
[0]:

/var/www/html/admin/libraries/module.functions.php:380 _module_readxml()
[0]: parking

/var/www/html/admin/libraries/utility.functions.php:1487 module_getinfo()
[0]:
[1]: 2

/var/www/html/admin/libraries/utility.functions.php:1463 _bootstrap_parse_hooks()

/var/www/html/admin/bootstrap.php:159 bootstrap_include_hooks()
[0]: pre_module_load
[1]: all_mods

/etc/freepbx.conf:9 require_once()
[0]: /var/www/html/admin/bootstrap.php

/var/www/html/admin/config.php:109 include_once()
[0]: /etc/freepbx.conf

Thanks,

Paul
 
..... am I screwed?

Please wait...
/usr/local/sbin/amportal: line 46: [FATAL]: command not found

/var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in '/etc/asterisk' is set to but the directory
does not exists. Attempting to create it with: 'mkdir -p '

mkdir: missing operand
Try `mkdir --help' for more information.
**** ERROR: COULD NOT CREATE ****
Attempt to execute 'mkdir -p ' failed with an exit code of 1
You must create this directory and the try again.
root@incrediblepbx:~#
 

Members online

Forum statistics

Threads
26,688
Messages
174,412
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top