【问题标题】:Joomla 3 Global Configuration missing headerJoomla 3 全局配置缺少标题
【发布时间】:2017-11-25 07:59:09
【问题描述】:

我最近没有更新 joomla。 我没有安装任何新的 3rd 方扩展,如组件、模块或... 我检查了所有“管理员/组件/com_config”和“管理员/库”以查找任何文件注入(黑客),并发现最近没有新的恶意软件文件被复制到那里。

Administrator 上的所有页面都和以前一样好。 只是缺少 com_config 页面,现在缺少任何标头代码,甚至缺少任何 css 样式。

“administrator/index.php?option=com_config”的源代码以这行开头:

<form action="/administrator/index.php?option=com_config" id="application-form" method="post" name="adminForm" class="form-validate">
    <div class="row-fluid">
        <!-- Begin Sidebar -->
        <div id="sidebar" class="span2">
            <div class="sidebar-nav">
                <ul class="nav nav-list">
            <li class="nav-header">System</li>
        <li class="active">
            <a href="index.php?option=com_config">Global Configuration</a>
        </li>
        <li class="divider"></li>
        <li class="nav-header">Component</li>

请帮我解决这个问题。 谢谢

【问题讨论】:

    标签: php css joomla styles administrator


    【解决方案1】:

    您可以通过 ftp 覆盖所有 joomla 文件来纠正问题。 这是适合您的版本: https://downloads.joomla.org/cms/joomla3/3-7-2/Joomla_3-7.2-Stable-Update_Package.zip?format=zip

    【讨论】:

    • 谢谢布鲁诺。我确实更新到了这个版本。一切正常,但此更新无法纠正我的问题。一切都和以前一样。加上我的管理员菜单页面有一个空白页。所以我回滚到我的备份。
    • 您的 joomla 实际版本是什么?您的 php 和 mysql 服务器版本适用于 joomla 3 吗?如果您有空白页,则存在错误,并且可能已写入您网站的日志文件中。
    【解决方案2】:

    您可以尝试重新安装 Joomla 核心:
    Joomla 更新 > 实时更新 > 重新安装 Joomla 核心文件。

    【讨论】:

    • 如果它对文件的破坏程度如此之大,我不会相信实时更新
    • 它只更新核心文件而不是覆盖。但你是对的。最好的方法是在带有备份的测试服务器上测试它
    • 感谢您的回答。我确实更新了我的 joomla 核心。但这不能纠正我的问题。一切都和以前一样。加上我的管理员菜单页面有一个空白页。所以我回滚到我的备份。
    【解决方案3】:

    我的问题是第三方插件(系统 - JV 库)重载了 Joomla 核心中的 JHtmlJquery 类。

    我可以实现将此代码添加到:“administrator/templates/isis/index.php”

    <?php
      $reflector = new ReflectionClass('JHtmlJquery');
      echo $reflector->getFileName();
    ?>
    

    得到这个:var/www/html/cuweb/plugins/system/jvlibs/javascripts/jvjslib.php

    所以我打开了那个文件并删除了 HJtmlJquery 类(下)

    abstract class JHtmlJquery
    {
        /**
         * @var    array  Array containing information for loaded files
         * @since  3.0
         */
        protected static $loaded = array();
    
        /**
         * Method to load the jQuery JavaScript framework into the document head
         *
         * If debugging mode is on an uncompressed version of jQuery is included for easier debugging.
         *
         * @param   boolean  $noConflict  True to load jQuery in noConflict mode [optional]
         * @param   mixed    $debug       Is debugging mode on? [optional]
         *
         * @return  void
         *
         * @since   3.0
         */
        public static function framework($noConflict = true, $debug = null)
        {
            JVJSLib::add('jquery');
            return;
        }
    
        /**
         * Method to load the jQuery UI JavaScript framework into the document head
         *
         * If debugging mode is on an uncompressed version of jQuery UI is included for easier debugging.
         *
         * @param   array  $components  The jQuery UI components to load [optional]
         * @param   mixed  $debug       Is debugging mode on? [optional]
         *
         * @return  void
         *
         * @since   3.0
         */
        public static function ui(array $components = array('core'), $debug = null)
        {                                                                                       
            JVJSLib::add('jquery.ui.interactions');
            return;
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-16
      • 2013-03-10
      • 1970-01-01
      • 2017-03-17
      • 1970-01-01
      • 1970-01-01
      • 2012-04-12
      • 2016-11-03
      相关资源
      最近更新 更多