为什么这个Joomla模板不起作用?

时间:2010-09-11 21:07:50

标签: templates joomla

我刚刚在我的电脑上安装了Joomla。一切正常。我安装了很多模板,但它们都有效,但我真正想要使用的模板没有。

我想使用此模板:http://byjoomla.com/docman/bj-joomla-templates/bj-venus/download.html 结果必须像this

当我安装Joomla时,我点击了“安装样本数据”按钮。当我安装模板时,我在空白页面上收到此错误:

Parse error: parse error in C:\wamp\www\templates\bj_venus\html\com_content\frontpage\default_item.php on line 158

当我不安装示例数据时,会显示模板,但它包含很多错误。 看看:http://grab.by/6eGi

Notice: Use of undefined constant _ISO - assumed '_ISO' in C:\wamp\www\templates\bj_venus\index.php on line 20
  

不推荐使用:函数split()是   不推荐使用   C:\ WAMP \ WWW \模板\ bj_venus \的index.php   第20行

Notice: Undefined variable: header in C:\wamp\www\templates\bj_venus\index.php on line 98

Notice: Undefined variable: toolbar in C:\wamp\www\templates\bj_venus\index.php on line 1

Notice: Undefined variable: advert1 in C:\wamp\www\templates\bj_venus\index.php on line 131

Notice: Undefined variable: headline in C:\wamp\www\templates\bj_venus\index.php on line 138

Notice: Undefined variable: top in C:\wamp\www\templates\bj_venus\index.php on line 152

Notice: Undefined variable: right in C:\wamp\www\templates\bj_venus\index.php on line 173

Notice: Undefined variable: banner in C:\wamp\www\templates\bj_venus\index.php on line 166

我不知道出了什么问题。我在官方的Joomla论坛上开了一个主题,但我没有得到任何答案:http:// forum.joomla.org/viewtopic.php?f = 466& p = 2250353

//对于http://和其他部分之间的空格感到抱歉,但那是因为我不允许发布更多超链接...(我必须获得10个声望点)

2 个答案:

答案 0 :(得分:1)

进入全局设置并确保在“服务器”选项卡下,“错误报告”设置为“无”。当我打开它时,我注意到我在同一模板上遇到了一些错误,但是当我将它设置为无时,它就清除了它们。希望这有效。

答案 1 :(得分:0)

您需要正确配置PHP。如果一切都配置正确并且您收到错误,那么模板就会出错。我看了bj_venus\html\com_content\frontpage\default_item.php,文件看起来很好,没有错误......很可能是配置问题。

Joomla按照以下要求运行http://www.joomla.org/technical-requirements.html

  1. 确保你没有运行PHP 5.3 ,Joomla不能在PHP 5.3上运行(很多错误)。你需要PHP 5.2.x
  2. 禁用错误报告,但修改 php.ini 设置display_errors = Off以隐藏所有错误。或者,如果您正在开发并希望忽略设置error_reporting = E_ALL & ~E_NOTICE的通知 - 这将显示错误但忽略通知。有关更多错误报告配置,请参阅php documentation
相关问题