Elxis CMS Forum

Extensions => Templates => Topic started by: fyswan on May 21, 2007, 21:09:07

Title: Joomla Templates Fail to Install
Post by: fyswan on May 21, 2007, 21:09:07
 ::)Hi  this is my first post.  I have migrated from Joomla.  I have Lots of joomla templates I have paid for and would like to use them for Elxis.  However they simply fail to install.  This is one of the errors!


tmpr/install_4651dc67a7cc5/index.php does not exist!

these are all .tgz files.  Perhaps it doesnt like the file? :o

I also have a Joomla template creation wizard, can I use this?  Or is it possible to create a multipurpose template skeleton that people can use to create their own copyrighted templates.  Perhaps we could share!
Title: Re: Joomla Templates Fail to Install
Post by: eliasan on May 21, 2007, 21:16:34
Welcome fyswan,

Elxis doesn't "like" installation zip files for templates, modules, mambots that are zipped including a folder.

You have to unzip the template locally, and then pack the files that are inside the newly created directory.

For example if you unzip locally template1.zip you will get something like:

C:/mytemplates/ template1/ [files]

Go inside C:/mytemplates/ template1/
Zip the files as template1.zip and
Use it to install the template.

 
Title: Re: Joomla Templates Fail to Install
Post by: fyswan on May 23, 2007, 11:50:04
Hi eliasan

Thanks.  I will try that when I create my own templates, unfortuanetely all the ones i have are .TGZ which dont extract to normal files. ???
Title: Re: Joomla Templates Fail to Install
Post by: eliasan on May 24, 2007, 02:32:58
Hi fyswan,

I do not see why the .tgz format is a problem.

There are so many extract applications that can handle (support) it.

If you feel more comfortable, you can then zip the files  to a .zip pack.
Title: Re: Joomla Templates Fail to Install
Post by: canton on June 24, 2007, 06:30:52
Quote

Elxis doesn't "like" installation zip files for templates, modules, mambots that are zipped including a folder.

You have to unzip the template locally, and then pack the files that are inside the newly created directory.

For example if you unzip locally template1.zip you will get something like:

C:/mytemplates/ template1/ [files]

Go inside C:/mytemplates/ template1/
Zip the files as template1.zip and
Use it to install the template.

I had already done this to upload a template and  it uploaded but now when i go to -:

site/template manager/templates

under the navigation option for "default/Assign/New/Edit HTML e.t.c the page is blank showing templates at all.

Just simple white space  :-[

What could have gone wrong and how do i rectifier the problem?

Thanks in advance
Title: Re: Joomla Templates Fail to Install
Post by: eliasan on June 24, 2007, 09:48:08
Canton, I will send you a PM with an email address that you could send me the template to check it.
Title: Re: Joomla Templates Fail to Install
Post by: eliasan on June 24, 2007, 20:23:22
Hi Canton,

Thank you for sending me the files for checking.

Indeed, when Elxis was trying to display the site templates an error was generated and execution was stoped. You had errors disabled. So what you were seeing was a blank page. You were unable to see the actual error message.

The error was:
Fatal error: Call to a member function on a non-object in .../administrator\components\com_templates\admin.templates.php on line 142

What was the cause of the error and how you can fix it.

One of the files composing the template is named: buildxml.php while there is also the normal templateDetails.xml file.

Algorithm seeks for files having "xml" in their names.

It was finding the buildxml.php, and was trying to interpret it as a templateDetails.xml (which it isn't). That failure was causing the fatal error.

How to fix it? Simply rename buildxml.php to buildx-ml.php

Templates now are displayed correctly, and the template shows up in the front end.



Title: Re: Joomla Templates Fail to Install
Post by: canton on June 25, 2007, 06:44:12
Thank you this made the template upload with no errors and allowed me to display it on the front end.

But please note. I had to reflect the changes in the "templateDetails.xml" for it to work.

But it seem that elixs doesn't display the template faithfully as i had issues with the navigation system. The main navigation at the top of the template and not at the left side of the navigation is missing.

this is only an issue with FireFox..and the strange thing was it wasn't in joomla.  ???

I'll try and look into this later or maybe you know what the problem is.

Thanks for your help
Title: Re: Joomla Templates Fail to Install
Post by: Ivan Trebješanin on June 25, 2007, 11:41:59
Hi canton,
My friend is making commercial templates for joomla, and I saw this problem once. It was due to top menu generation in joomla (it's not  generating active link in top menu). He copied mainlevel and published that copy in the place of top menu. Maybe this is the case with your template to. This workaround works for joomla, but elxis doesn't need this workaround. ;)
Title: Re: Joomla Templates Fail to Install
Post by: canton on June 26, 2007, 09:53:03
thanks i'll try this later today and get back to you  8)