Elxis CMS Forum
Extensions => Templates => Topic started 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?
-
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?
-
to this email address? msn@datahellas.com
-
info AT datahellas DOT com
-
was this issue resolved? If so could you please provide the solution here so that others may benefit.
-
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.
-
how to resolve the problem?