Elxis CMS Forum

Extensions => Templates => Topic started by: Haic on November 19, 2006, 14:11:55

Title: template problem
Post by: Haic on November 19, 2006, 14:11:55
Hello,

I have installed a mambo/joomla template and i've got a error in the administration template

Fatal error: Call to a member function on a non-object in /home/elxiscms/domains/elxiscms.nl/public_html/administrator/components/com_templates/admin.templates.php on line 142

Do you know what the problem is?
Title: Re: template problem
Post by: datahell on November 19, 2006, 22:45:42
Seems there is a problem with the template's XML file. Is this the only error message you see? Can you send me the template to check it?
Title: Re: template problem
Post by: Haic on November 19, 2006, 22:52:18
to this email address? msn@datahellas.com
Title: Re: template problem
Post by: datahell on November 19, 2006, 22:59:16
info AT datahellas DOT com
Title: Re: template problem
Post by: ioannis_paps on January 13, 2007, 04:09:06
was this issue resolved? If so could you please provide the solution here so that others may benefit.
Title: Re: template problem
Post by: ioannis_paps on January 13, 2007, 07:02:36
I think I have solved this issue.
Some Joomla templates contain files which may have the word "xml" in them. If this is the case then this line from admin.templates.php:

$xmlFilesInDir = $fmanager->listFiles($dirName,'.xml');

seems to select these files as well which I dont believe it should. As such when it comes time to execute this line:

$xmlFilesInDir = $fmanager->listFiles($dirName,'.xml');

and determine if the file is a valid xml file it fails.


Hope this helps someone.
Title: Re: template problem
Post by: theprincy on January 16, 2007, 12:13:36
how to resolve the problem?