joomla模板错误
我安装了joomla模板,但每次都会出现以下错误:
注意:未定义的变量:my in C:\xampp\htdocs\Joomla16\templates\cartion\index.php 第 36 行
注意:尝试获取非对象的属性 C:\xampp\htdocs\Joomla16\templates\cartion\index.php 第 36 行
致命错误:在非对象上调用成员函数 GETCFG() C:\XAMPP\HTDOCS\JOOMLA16\TEMPLATES\CARTION\SUCKERFISH.PHP 在线 763
我应该如何解决这个问题?
我也分享代码:
<jdoc:include type="head" />
<?php if($my->id) initEditor(); ?> #lin36
if ($mainframe->getCfg('shownoauth')) {
$sql = ("SELECT m.*, count(p.parent) as cnt" .
"\nFROM #__menu AS m" .#763
I installed a joomla template but the following error comes up every time:
Notice: Undefined variable: my in
C:\xampp\htdocs\Joomla16\templates\cartion\index.php on line 36
Notice: Trying to get property of non-object in
C:\xampp\htdocs\Joomla16\templates\cartion\index.php on line 36
FATAL ERROR: CALL TO A MEMBER FUNCTION GETCFG() ON A NON-OBJECT IN
C:\XAMPP\HTDOCS\JOOMLA16\TEMPLATES\CARTION\SUCKERFISH.PHP ON LINE 763
How should I go about resolving this?
I am sharing the code as well:
<jdoc:include type="head" />
<?php if($my->id) initEditor(); ?> #lin36
if ($mainframe->getCfg('shownoauth')) {
$sql = ("SELECT m.*, count(p.parent) as cnt" .
"\nFROM #__menu AS m" .#763
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我怀疑这是因为
$mainframe
未定义,$mainframe = new some_classname();
?看起来这个模板也缺少定义
$mainframe
所需的类I would suspect it's because
$mainframe
is not defined,$mainframe = new some_classname();
?also looks like this template missing the required classes which defines
$mainframe