Page 1 of 1

Error! Could not find an XML setup file in the package.

Posted: Wed Jul 25, 2007 5:04 pm
by nuga
??? Hi, I just installed joomla 1.5, and I am trying to install a new template for joomla 1.5 and I got this error.(Error! Could not find an XML setup file in the package. )  What can I do. where is that setup package
:'(

Re: Error! Could not find an XML setup file in the package.

Posted: Wed Jul 25, 2007 5:11 pm
by ianmac
Is there an XML file in the package you tried to upload?

Ian

Re: Error! Could not find an XML setup file in the package.

Posted: Wed Jul 25, 2007 5:16 pm
by nuga
I don´t know. The only thing I want is to install a new template and I got this error. 

Re: Error! Could not find an XML setup file in the package.

Posted: Wed Jul 25, 2007 5:18 pm
by ianmac
But you should have a zip archive with the new template you want to install.  Open it up, and look for a file called templateDetails.xml.

Ian

Re: Error! Could not find an XML setup file in the package.

Posted: Wed Jul 25, 2007 5:23 pm
by nuga
Yes, the file is there and the first line says ()

Re: Error! Could not find an XML setup file in the package.

Posted: Tue Jul 31, 2007 2:10 am
by freespirit
Hey,
Don't know whether you've fixed this problem already but thought I'd try to help..
Just ran across a similar problem then realised I'd miscoded the xml file.
If there's a fault in the code, Joomla seems to think that the whole file is missing or invalid.
My error was due to a missing < in a filename tag. You might want to check that all the tags are valid  :)

The templateDetails.xml code should look something like this (replacing all the dumb names with the actual filenames etc)...

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>

<mosinstall type="template">
  <name>Template Name</name>
  <creationDate>July 2007</creationDate>
  <author>Authors name</author>
  <copyright>Copyright 2007 Whoever</copyright>
  <authorEmail>[email protected]</authorEmail>
  <authorUrl>www.templatedesigner.com</authorUrl>
  <version>1.0</version>
  <description>Template for the such and such website. </description>

  <files>
    <filename>index.php</filename>
    <filename>templateDetails.xml</filename>
  </files>

  <images>
                <filename>images/image1.jpg</filename>
	<filename>images/image2.jpg</filename>
	<filename>images/image3.jpg</filename>
	<filename>template_thumbnail.png</filename>
</images>
 
  <css>
    <filename>css/template_css.css</filename>
  </css>

</mosinstall>

Re: Error! Could not find an XML setup file in the package.

Posted: Tue Jul 31, 2007 2:30 am
by ianmac
Yes, the file must be valid XML in order for Joomla! to process it.

Opening the xml file in firefox is a good way to determine its XML validity, as Firefox will check it.

Ian

Re: Error! Could not find an XML setup file in the package.

Posted: Tue Jul 31, 2007 3:14 pm
by jonflgiles
Ian - that is a genius tip - I have no idea why I didn't think of doing that before!!!!

I've got stuck doing this before and it came down to a typo.

Cheers,

Jon.

Re: Error! Could not find an XML setup file in the package.

Posted: Mon Jul 07, 2008 5:30 pm
by butlertf
I am running into the problem of loading a template onto joomla 1.5.3 also and was wondering if you could help. There is a xml file in the template folder, but i still get the "Error! Could not find an XML setup file in the package." When I run it through firefox I get this message "This XML file does not appear to have any style information associated with it. The document tree is shown below." Is that a huge problem? I bought this template so I thought everything would be perfect. Thanks for your help and time.

Re: Error! Could not find an XML setup file in the package.

Posted: Mon Jul 07, 2008 5:55 pm
by ianmac
butlertf wrote:I am running into the problem of loading a template onto joomla 1.5.3 also and was wondering if you could help. There is a xml file in the template folder, but i still get the "Error! Could not find an XML setup file in the package." When I run it through firefox I get this message "This XML file does not appear to have any style information associated with it. The document tree is shown below." Is that a huge problem? I bought this template so I thought everything would be perfect. Thanks for your help and time.
One would not expect there to be styling information associated with an intallation XML file. Stylesheets for XML files are used for display purposes. Since these XML files are not intended for display using a browser, style information is not provided.

Are you installing locally or on a host?

Ian

Re: Error! Could not find an XML setup file in the package.

Posted: Mon Jul 07, 2008 6:04 pm
by butlertf
I am trying to load it to a localhost. The hosting company I am using is Aplus.net. They would not update the 1.0.15 joomla they have installed on their control panel, so I created a directory for the joomla 1.5.3 and it seems to work fine. I was able to install a free template, so I know it is possible to do so. I just do not understand why this one isn't. The template is made for Joomla 1.5.