5

我有一个 Joomla 2.5 站点,但我无法再访问管理员面板。这只会将我重定向到/installation/index.php,它(应该)给出404。我认为这是在升级后发生的。

我尝试按照此处的建议清除浏览器缓存:Joomla 1.0,管理员链接重定向到“installation/index.php”,如何防止这种重定向?

但这没有用。

很久以前,在 1.x 时代,Joomla 网站上有一些安全建议,其中建议将 configuration.php 移到我遵循的 public_html 目录之外。我现在找不到它们,但我尝试将 configuration.php 文件复制到 Joomla 根目录,并将其保存在定义于定义的目录中define('JPATH_CONFIGURATION'

有任何想法吗?

我的扩展

bash-3.2$ find plugins/ -type d
plugins/
plugins/authentication
plugins/authentication/gmail
plugins/authentication/joomla
plugins/authentication/ldap
plugins/captcha
plugins/captcha/recaptcha
plugins/content
plugins/content/emailcloak
plugins/content/finder
plugins/content/geshi
plugins/content/geshi/geshi
plugins/content/geshi/geshi/geshi
plugins/content/joomla
plugins/content/loadmodule
plugins/content/pagebreak
plugins/content/pagenavigation
plugins/content/vote
plugins/editors-xtd
plugins/editors-xtd/article
plugins/editors-xtd/image
plugins/editors-xtd/pagebreak
plugins/editors-xtd/readmore
plugins/editors
plugins/editors/codemirror
plugins/editors/none
plugins/editors/tinymce
plugins/extension
plugins/extension/joomla
plugins/finder
plugins/finder/categories
plugins/finder/contacts
plugins/finder/content
plugins/finder/newsfeeds
plugins/finder/weblinks
plugins/quickicon
plugins/quickicon/extensionupdate
plugins/quickicon/joomlaupdate
plugins/search
plugins/search/categories
plugins/search/contacts
plugins/search/content
plugins/search/newsfeeds
plugins/search/weblinks
plugins/system
plugins/system/cache
plugins/system/debug
plugins/system/highlight
plugins/system/languagecode
plugins/system/languagecode/language
plugins/system/languagecode/language/en-GB
plugins/system/languagefilter
plugins/system/log
plugins/system/logout
plugins/system/p3p
plugins/system/redirect
plugins/system/remember
plugins/system/sef
plugins/user
plugins/user/contactcreator
plugins/user/joomla
plugins/user/profile
plugins/user/profile/fields
plugins/user/profile/profiles
4

6 回答 6

2

试试这个,如果不工作移动到另一个点。

1.改变这个

if (file_exists(JPATH_INSTALLATION.'/index.php')) {
   header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'], 'index.php')).'installation/index.php');

对此:

if (file_exists(JPATH_INSTALLATION.'/index.php')) {
header('Location: '.substr($_SERVER['REQUEST_URI'], 0, strpos($_SERVER['REQUEST_URI'],   'index.php')).JPATH_INSTALLATION.'/index.php');

它的第 25-26 行在administrator/includes/framework.php

2.删除该文件中的第23-32行 - 它检查安装文件夹和配置文件的大小,如果您没有安装文件夹并且配置文件正常,您可以将其删除

3.在configuration.php中设置变量$sef$sef_rewrite为零

于 2013-08-30T09:18:47.680 回答
1

试试这个东西

  • 删除joomla安装文件目录:c:/host/project path/your site/installation
  • 检查您的服务器并重新启动它
  • 确保服务器上提供所需的服务
  • 尝试安装新的 Joomla 包http://www.joomla.org/download.html

谢谢

于 2013-09-01T11:32:03.140 回答
1

诊断情况

也许您应该从诊断插件开始?通过将它们全部删除并逐个添加以查看导致问题的原因。正如您最近更新的那样,插件可能会导致此问题,因为它已过时并且正在软件和扩展之间造成冲突。

该问题可能是基于找不到配置,因此 Joomla 假定您尚未安装该软件。

这些你都做过了吗?

  • 删除安装文件夹
  • 检查 .htaccess 是否没有导致问题
  • 尝试降级和升级?
于 2013-08-25T12:34:41.547 回答
1

我认为插件不会导致重定向到安装文件夹。系统很可能认为它尚未安装,这很可能是由于在 Joomla 期望的位置缺少 configuration.php 文件造成的。

您可以尝试在define.php的末尾添加类似这样的内容:

var_dump(file_exists(JPATH_CONFIGURATION.DS.'configuration.php'));

如果它输出 true - 这意味着配置文件存在并且问题不在其中。然后我会将 .htaccess 重命名为 htaccess.txt 以确保它没有效果。如果这不起作用,您还可以在 public_html 文件夹中查找 index.php 文件并确保没有对其进行任何更改。

我很确定配置文件不在其位置,这应该可以解决您的问题。如果没有,请回击我,我会进一步帮助你。

于 2013-08-29T15:35:59.500 回答
0

恕我直言,您需要在安装后删除 /installation 文件夹。否则,如果它找到此文件夹并且您被重定向到那里。

于 2013-09-01T11:30:02.997 回答
0

出于安全原因,Joomla 不允许在安装完成后删除安装文件夹之前将您重定向到站点前端或后端。请确保 joomla/installation文件夹已删除,如果是,请重新启动服务器可能的。

于 2013-09-01T12:21:33.827 回答