Fatal error: Call to a member function getCfg() on a non-obj

Joomla version 1.5 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

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.
Locked
rafaviriato
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Dec 19, 2014 7:18 pm

Fatal error: Call to a member function getCfg() on a non-obj

Post by rafaviriato » Fri Dec 19, 2014 7:33 pm

When installing a template appears the error

Fatal error: Call to a member function getCfg() on a non-obj

the code line

<div class="sitetitle"><?php echo $mainframe->getCfg('sitename');?></div>

Does anyone know how to solve ???

jcms
I've been banned!
Posts: 2233
Joined: Wed Nov 19, 2014 9:23 am

Re: Fatal error: Call to a member function getCfg() on a non

Post by jcms » Sat Dec 20, 2014 3:30 am

you can comment that line or you this before that source code:
$mainframe = JFactory::getApplication();


Locked

Return to “Installation 1.5”