【问题标题】:Joomla Hello World tutorial not workingJoomla Hello World 教程不起作用
【发布时间】: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


    【解决方案1】:

    弗朗索瓦,

    欢迎来到 Joomla 的世界。当您说 joomla 1.6 组件应该在 2.5 上正常工作时,您是对的,但这并不完全正确。对此问题有很多抱怨,似乎某些组件与更高/更低的 Joomla 版本不兼容。

    这是由于代码内部的某种冲突以及对组件进行/使用的不同调用造成的。

    我相信有可能修复这些致命错误,因为我自己已经完成了此操作,但是您必须检查代码并终止代码以查看它在哪里通过和在哪里不通过并更改那些不兼容的调用.

    很抱歉没有 100% 的解决方案,但这可以让您了解问题可能是什么。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-12-06
      • 1970-01-01
      • 2023-04-11
      • 2015-03-19
      • 2013-01-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多