Template Installation Problem - Failed loading XML file

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
blessdesigns
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Sep 14, 2011 5:07 am

Template Installation Problem - Failed loading XML file

Post by blessdesigns » Wed Sep 14, 2011 5:45 am

I wanted to install a custom made template on Joomla 1.7.

From the Extension Manager, I tried to upload the ZIP file and I keep getting this error message:

Code: Select all

Failed loading XML file
/Users/xxxx/Sites/xxxx/tmp/install_4e7038bc3139b/apac2/templateDetails.xml
XML: xmlParseEntityRef: no name
JInstaller: :Install: Cannot find Joomla XML setup file
I also tried copying the template directory to tmp/ and do a direct install from directory, and still I got the error message:

Code: Select all

Failed loading XML file
/Users/xxxx/Sites/xxxx/tmp/apac2/templateDetails.xml
XML: xmlParseEntityRef: no name
JInstaller: :Install: Cannot find Joomla XML setup file
Path does not have a valid package.
I checked all files and directory permissions, everything is ok. I checked for hidden temp files, nothing there all clean. I tried zipping from command line, just in case my Mac adds unwanted things there, still the same result.

I tried using the Discover feature. Still I got this error message:

Code: Select all

Failed loading XML file
/Users/xxxx/Sites/xxxx/templates/apac2/templateDetails.xml
XML: xmlParseEntityRef: no name
It seemed like the problem is with the XML file but I didn't know what to do with it. Somehow Joomla just seemed to have trouble reading the XML file for some reasons. I have checked the XML file for missing tags but it was all good.

Then by accident I found what caused the problem. I had an ampersand '&' in the template description.
Removed it, everything worked like magic.

One character managed to cause the entire system to fail miserably and cost me hours of frustration.

I just have to post this to save anyone struggling with the same problem the hours I already spent.
Last edited by blessdesigns on Wed Sep 14, 2011 11:08 pm, edited 2 times in total.

boofka_99
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Nov 29, 2006 8:11 am

Re: Template Installation Problem - Failed loading XML file

Post by boofka_99 » Wed Sep 14, 2011 5:27 pm

I want to say thanks for posting this!! Much appreciated!

I just had this problem (putting an ampersand in the description) and am amazed that one little thing would cause a problem!

User avatar
coalaweb
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Wed Jun 30, 2010 6:42 pm
Location: New York
Contact:

Re: Template Installation Problem - Failed loading XML file

Post by coalaweb » Mon Sep 19, 2011 12:02 pm

Thanks I had the same issue one of my templates was installing fine and when I upgraded it I added 1.6 & 1.7 to the description and got the error! once I took out the & all was fine again.

bornakke
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Tue Jan 22, 2008 8:09 pm

Re: Template Installation Problem - Failed loading XML file

Post by bornakke » Mon Nov 07, 2011 6:30 pm

I as well wants to thank you. I have no idea how I should ever have guessed that a '&' in the author field would do so much harm :(

JEmlay
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Wed Dec 19, 2007 6:45 am

Re: Template Installation Problem - Failed loading XML file

Post by JEmlay » Fri Apr 13, 2012 7:37 pm

If you want to use an ampersand then make sure the XML contains:

&

User avatar
coalaweb
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Wed Jun 30, 2010 6:42 pm
Location: New York
Contact:

Re: Template Installation Problem - Failed loading XML file

Post by coalaweb » Sat Apr 14, 2012 5:52 pm

JEmlay wrote:If you want to use an ampersand then make sure the XML contains:

&
Very true! I read the comment below in a Joomla core file a while ago and have since made sure all my XML files use the &

<!-- Note that all & must be escaped to & for the file to be valid XML and be parsed by the installer -->

User avatar
maxelcat
Joomla! Explorer
Joomla! Explorer
Posts: 391
Joined: Fri Jul 18, 2008 9:25 am
Location: London
Contact:

Re: Template Installation Problem - Failed loading XML file

Post by maxelcat » Wed Nov 28, 2012 2:17 pm

Thanks for this - was a slilly little thing that was driving me nuts!
Blog and web http://www.ee-web.co.uk/blog - lots of joomla tips!
Twitter https://twitter.com/#!/maxelcat

piggyslasher
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Mar 03, 2009 9:26 am

Re: Template Installation Problem - Failed loading XML file

Post by piggyslasher » Wed Jan 16, 2013 4:03 pm

Thanks for this! Really! I wasted a lot of time cracking my head on this.

User avatar
cratos
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Tue Sep 18, 2007 12:49 am
Location: Costa Rica
Contact:

Re: Template Installation Problem - Failed loading XML file

Post by cratos » Fri Feb 01, 2013 5:03 pm

At last! Thanks mate. :geek:

PrincessPower
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Jun 02, 2017 8:11 pm

Re: Template Installation Problem - Failed loading XML file

Post by PrincessPower » Thu Jul 19, 2018 4:28 pm

Still helpful! Thanks man!


Locked

Return to “Templates for Joomla! 2.5”