1. s_nieman
  2. Commercial Templates
  3. Thursday, 29 March 2012
  4.  Subscribe via email
Good day

I am using the Morpheus template for a design and have chosen to use an image rather than text in the logo position. The logo is displaying, but superimposed on top of the image is an error message:

Notice: Undefined variable: siteName in C:\wamp\www\trial\templates\j51_morpheus\index.php on line 76

Please help, what am I doing incorrectly?
Regards
Sharon
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sharon

Try replacing the following at the top of your templates index.php (../templates/j51_morpheus/index.php)

<?php
defined('_JEXEC') or die;
JPlugin::loadLanguage( 'tpl_SG1' );
$path = $this->baseurl.'/templates/'.$this->template;
$app = JFactory::getApplication();
JHTML::_('behavior.mootools');
$app->getCfg('sitename');
?>


With....

<?php
defined('_JEXEC') or die;
$path = $this->baseurl.'/templates/'.$this->template;
$app = JFactory::getApplication();
JHTML::_('behavior.mootools');
define( 'Jmasterframework', dirname(__FILE__) );
$path = $this->baseurl.'/templates/'.$this->template;
$app = JFactory::getApplication();
$siteName = $this->params->get('siteName');
?>


CiarĂ¡n
  1. more than a month ago
  2. Commercial Templates
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!