My First Template - Installation Errors - Need Help!

Everything to do with Joomla! 3.x 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.
Aenigmaticus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Mar 19, 2017 7:29 am

My First Template - Installation Errors - Need Help!

Postby Aenigmaticus » Mon Mar 20, 2017 6:19 pm

So I've read variating tutorials with respect to creating ones own template. Cool! The template seems correct, albeit 'hello world'-esque simple, and should be compatible to the latest version of Joomla. All files are encoded with UTF-8.

File Directory:

aetherium.zip
/index.php
/templateDetails.xml
/css/
/css/template.css
/images/
/images/placeholder.txt (Windows Zip doesn't like blank folders)
/language/
/language/en-CA.tpl_aetherium.ini
/language/en-CA.tpl_aetherium.sys.ini

Unfortunately, when I try to install (Extension->Manage->Install->Upload & Install) I get this:

Warning
JInstaller: :Install: Can't find Joomla XML setup file.
Error
Unable to find install package

Isn't that part of the purpose of 'templateDetails.xml'? I've checked countless times to ensure the XML is properly formatted, and it is! I've also verified that the tags and layout is also correct with respect to the latest version of Joomla.

So what is this 'Joomla XML setup file' that it is referencing to? Is there a directory requirement I'm overlooking?

-----
Edit: I have also tried 'aetherium.xml' and 'manifest.xml', as per documentation. No luck unless I wrap the other files/directories into a 'template' folder, in which case it did 'install' and I got as far as setting it as the default template. However once I checked my home page to verify, the actual template defaulted to the System template; indirectly telling me that it is malformed. Odd!
-----
Edit 2: The template is meant to be a lean-and-mean HTML5/CSS with no Javascript in the frontend.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 32121
Joined: Sat Apr 05, 2008 9:58 pm

Re: My First Template - Installation Errors - Need Help!

Postby Webdongle » Tue Mar 21, 2017 2:02 am

aetherium.zip
index.php
templateDetails.xml
/css/
/css/template.css
/images/
/images/placeholder.txt (Windows Zip doesn't like blank folders)
/language/
/language/en-CA.tpl_aetherium.ini
/language/en-CA.tpl_aetherium.sys.i

index.php and templateDetails.xml should be root of your Template so that it becomes
/templates/aetherium/index.php and /templates/aetherium/templateDetails.xml

Aenigmaticus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Mar 19, 2017 7:29 am

Re: My First Template - Installation Errors - Need Help!

Postby Aenigmaticus » Tue Mar 21, 2017 3:48 am

As per each template I've installed and tried, it was always contained within a compressed archive, such as zip. Correspondingly, the first '/' in each line defined is the root within the zip. Sorry for the confusion!

I learnt that the trial-and-error method, as mentioned in the first Edit.
-----

Back to the problem -
Sorry for the original confusion, I'll reformat how I described the file layout:

Within archive file 'aetherium.zip':
  • index.php
  • templateDetails.xml
  • css/
    • template.css
  • images/
    • placeholder.txt
  • language/
    • en-CA.tpl_aetherium.ini
    • en-CA.tpl_aetherium.sys.ini

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 32121
Joined: Sat Apr 05, 2008 9:58 pm

Re: My First Template - Installation Errors - Need Help!

Postby Webdongle » Tue Mar 21, 2017 8:14 am

Are you able to install other Templates ?

Aenigmaticus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Mar 19, 2017 7:29 am

Re: My First Template - Installation Errors - Need Help!

Postby Aenigmaticus » Tue Mar 21, 2017 6:14 pm

Yes, I can install other templates.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 32121
Joined: Sat Apr 05, 2008 9:58 pm

Re: My First Template - Installation Errors - Need Help!

Postby Webdongle » Tue Mar 21, 2017 6:39 pm

Then check the syntax near the top of your templateDetails.xml

Aenigmaticus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Mar 19, 2017 7:29 am

Re: My First Template - Installation Errors - Need Help!

Postby Aenigmaticus » Tue Mar 21, 2017 7:49 pm

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/2.5/template-install.dtd">
<extension version="3.6.4" type="template" client="site">
   <name>aetherium</name>
   <creationDate>19/03/2017</creationDate>
   <author>Keith MacDonald</author>
   <authorEmail>admin@aenigmaticus.ca</authorEmail>
   <authorUrl>https://www.aenigmaticus.ca</authorUrl>
   <copyright>&copy; 2017 Aenigmaticus Science &amp; Entertainment</copyright>
   <license>All Rights Reserved</license>
   <version>1.0.0</version>
   <description>Aetherium</description>
   <files>
      <filename>index.php</filename>
      <!--<filename>templateDetails.xml</filename>-->
      <folder>css</folder>
      <folder>images</folder>
      <folder>language</folder>
   </files>
   <positions>
      <position>top</position>
      <position>head-logo</position>
      <position>head-space</position>
      <position>navigation</position>
      <position>breadcrumb</position>
      <position>content</position>
      <position>sidebar-left</position>
      <position>sidebar-right</position>
      <position>footer</position>
      <position>bottom</position>
   </positions>
   <languages>
      <language tag=”en-CA”>/language/en-CA.tpl_aetherium.ini</language>
      <language tag=”en-CA”>/language/en-CA.tpl_aetherium.sys.ini</language>
   </languages>
   <config>
   </config>
</extension>

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 32121
Joined: Sat Apr 05, 2008 9:58 pm

Re: My First Template - Installation Errors - Need Help!

Postby Webdongle » Tue Mar 21, 2017 8:59 pm

<!--<filename>templateDetails.xml</filename>-->
remove the comments.

Change
<extension version="3.6.4" type="template" client="site">
to
<extension version="3.1" type="template" client="site">
(Like it is in Protostatar's xml file)

Aenigmaticus
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Sun Mar 19, 2017 7:29 am

Re: My First Template - Installation Errors - Need Help!

Postby Aenigmaticus » Tue Mar 21, 2017 9:21 pm

The file was adjusted as you asked, this is this result:

Code: Select all

Warning
JInstaller: :Install: Can't find Joomla XML setup file.
Error
Unable to find install package


:(

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 32121
Joined: Sat Apr 05, 2008 9:58 pm

Re: My First Template - Installation Errors - Need Help!

Postby Webdongle » Tue Mar 21, 2017 10:20 pm

Email me the zip please ?


Return to “Templates for Joomla! 3.x”

Who is online

Users browsing this forum: wongkalaam and 13 guests