【发布时间】:2013-09-07 12:30:17
【问题描述】:
短版:
我在我的 Joomla 2.5 环境中安装了this Hello World component,虽然在安装过程中一切正常,但当我尝试访问它时出现 500 服务器错误。
谁能告诉我在他们的 Joomla 2.5 环境中加载上述组件是否让我知道它是否适合他们?如果访问此 URL 有效(可能需要调整主机名和 Joomla 路径):
http://localhost/joomla/index.php?option=com_helloworld
至少我会知道这是否是我的 Joomla 安装的问题。
加长版:
我阅读了这个 Joomla 教程:http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Adding_configuration
并从该页面上的“存档”链接下载代码。我在我的 Joomla 2.5.14 安装中上传了该组件,但该组件似乎无法正常工作。好吧,组件的管理部分有效,但最终用户部分无效。
这是我的访问方式:
http://localhost/~myusername/joomla/index.php?option=com_helloworld
但是这个页面给了我一个 500 错误:
Error: 500 You may not be able to visit this page because of: an out-of-date bookmark/favourite a search engine that has an out-of-date listing for this site a mistyped address you have no access to this page The requested resource was not found. An error has occurred while processing your request. Please try one of the following pages: Home Page Search this site If difficulties persist, please contact the System Administrator of this site and report the error below.. Call stack # Function Location 1 JSite->dispatch() /Users/myusername/Sites/joomla/index.php:42 2 JComponentHelper::renderComponent() /Users/myusername/Sites/joomla/includes/application.php:197 3 JComponentHelper::executeComponent() /Users/myusername/Sites/joomla/libraries/joomla/application/component/helper.php:351 4 require_once() /Users/myusername/Sites/joomla/libraries/joomla/application/component/helper.php:383 5 JController->execute() /Users/myusername/Sites/joomla/components/com_helloworld/helloworld.php:23 6 JController->display() /Users/myusername/Sites/joomla/libraries/joomla/application/component/controller.php:761 7 HelloWorldViewHelloWorld->display() /Users/myusername/Sites/joomla/libraries/joomla/application/component/controller.php:722 8 JError::raiseError() /Users/myusername/Sites/joomla/components/com_helloworld/views/helloworld/view.html.php:33 9 JError::raise() /Users/myusername/Sites/joomla/libraries/joomla/error/error.php:251
我在 OS X (10.8.4) 上使用 PHP 5.3.15 和 MySQL 5.5.27 运行它。
我是在使用正确的 URL 来调用这个组件,还是应该提供更多的查询字符串参数?
我注意到的一件事是该教程适用于 Joomla 2.5,但存档适用于 Joomla 1.6。 Joomla 1.6 组件是否应该与 Joomla 2.5 一起使用?不过,当我安装该组件时,Joomla 并没有抱怨。
【问题讨论】:
标签: components joomla2.5