joomla出现错误Notice:Tryingtogetpropertyofnon-objectinC:\wamp\www\www\templates\pears\layou

发布时间:2019-08-11 05:41:51

Notice: Undefined variable: config in C:\wamp\www\www\templates\pears\layouts\blocks\header.php on line 23

Notice: Trying to get property of non-object in C:\wamp\www\www\templates\pears\layouts\blocks\header.php on line 23
下面是23和24的条目
<?php else:
$logoText = (trim($this->getParam('logoType-text-logoText'))=='') ? $config->sitename : $this->getParam('logoType-text-logoText');
$sloganText = (trim($this->getParam('logoType-text-sloganText'))=='') ? JText::_('SITE SLOGAN') : $this->getParam('logoType-text-sloganText');?>

推荐回答

建议查看JOOMLA和WAMPSEVER的版本,有可能是你用的JOOMLA太老,或是WAMP太老,老没关系,主要版本要匹配,打个比方,08年大家用的JOOMLA是跑在什么版本的PHP和MYSQL上的?
以上问题属网友观点,不代表本站立场,仅供参考!