joomla custom template error

jasotasticon
jasotasticon used Ask the Experts™
on
I keep getting the message:

XML Parsing Error at 1:1. Error 4: not well-formed (invalid token)

...but then the template installs successfully and it says:

"Install Template Success"

and then in my template page in the parameters section it says:

The parameter file /templates/pcia2010/params.ini is unwritable!

what am I missing here?

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN"
 "http://dev.joomla.org/xml/1.5/template-install.dtd">
<install version="1.5" type="template">
        <name>pcia2010</name>
        <creationDate>10/23/09</creationDate>
        <author>Jason Mathews Gottlieb</author>
        <authorEmail>jason@fuszion.com</authorEmail>
        <authorUrl>http://www.fuszion.com</authorUrl>
        <copyright>2009 Fuszion.com</copyright>
        <license>Fuszion.com</license>
        <version>1.0.0</version>
        <description>Interior pages for PCIA 2010</description>
        <files>
				<filename>index.php</filename>
				<filename>templateDetails.xml</filename>
				<filename>template_thumbnail.png</filename>
                <filename>css/default.css</filename>
				<filename>images/pcia_00.jpg</filename>
				<filename>images/pcia_01.jpg</filename>
				<filename>images/pcia_02.jpg</filename>
				<filename>images/pcia_03.jpg</filename>
				<filename>images/pcia_04.jpg</filename>
				<filename>images/pcia_05.jpg</filename>
				<filename>images/pcia_06.jpg</filename>
				<filename>images/pcia_07.jpg</filename>
				<filename>images/pcia_08.jpg</filename>
				<filename>images/pcia_09.jpg</filename>
				<filename>images/pcia_bar.jpg</filename>
        </files>
        <positions>
				<position>optional</position>
                <position>top</position>
                <position>left</position>
                <position>righta</position>
                <position>rightb</position>
                <position>bottom</position>
        </positions>
</install>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Have you tried changing the write permissions on params.ini in that path?

Author

Commented:
Jornak,

Well, I was trying to install it without the error in the first place, and since that file doesn't even exist until after the install. I feel like I would still be missing something. Right? or should I just ignore the error message and try and fix the parameter file thing?

Commented:
Ignore the message and change the write permissions on params.ini; let's just see what happens after.
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Author

Commented:
That file does not seem to be visible to me?
Commented:
The error during the install is from this line in the xml file: <!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN"
 "http://dev.joomla.org/xml/1.5/template-install.dtd">

If you don't see the params.ini file, then joomla couldn't create it.  Try making a blank params.ini file and put it in the template directory (/templates/pcia2010).  Make sure that it's writeable for Joomla.

Author

Commented:
Notexa,

Seems like that worked... However, it's a little disconcerting that I had to go through those extra steps.

Is there a way I can avoid that in the future? Do you know what specifically was wrong with my XML code?

- J

Commented:
The only thing I can see that might cause a problem is the doctype line.But even this shouldn't give problems with the params.ini file.  This file is automatically created by Joomla when you save the template parameters. Maybe Joomla doesn't get write rights when a new directory is created on your server ?

Author

Commented:
Notexa,

Ah, ok. Well thank for your help!

Author

Commented:
Thanks!!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial