0

我已经搜索了很多,到目前为止没有一个解决方案有效,所以我想我真的需要排除故障才能看到问题所在:

当我浏览我们的网站 www.theprinterdepo.com 时,它在 chrome 或 firefox 上运行良好。但是,当我在 Internet Explorer 上访问 www.theprinterdepo.com/admin 上的管理员时,它会显示 500 内部服务器错误,之后如果我尝试使用 Internet Explorer 访问 www.theprinterdepo.com,它会显示相同的错误. 同时我可以在谷歌浏览器或火狐浏览该网站,它工作没有问题。

工作时在 Internet Explorer 上加载需要很长时间。虽然在 chrome 上仍然加载完美。

我在 index.php 中设置了 chmod 755。

我在 index.php 上添加了这个

if ($_SERVER['REMOTE_ADDR'] == '83.134.93.212') { Mage::setIsDeveloperMode(true); ini_set('display_errors', 1); }

我懂了

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 60: parser error : Opening and ending tag mismatch: config line 28 and confg  in /home/theprint/public_html/lib/Varien/Simplexml/Config.php on line 510

#0 [internal function]: mageCoreErrorHandler(2, 'simplexml_load_...', '/home/theprint/...', 510, Array)
#1 /home/theprint/public_html/lib/Varien/Simplexml/Config.php(510): simplexml_load_string('loadString('loadFile('/home/theprint/...')
#4 /home/theprint/public_html/app/code/core/Mage/Admin/Model/Config.php(59): Mage_Core_Model_Config->loadModulesConfiguration('adminhtml.xml', Object(Varien_Simplexml_Config))

第 510 行对应于此:

  public function loadString($string)
    {
        if (is_string($string)) {
            $xml = simplexml_load_string($string, $this->_elementClass);

            if ($xml instanceof Varien_Simplexml_Element) {
                $this->_xml = $xml;
                return true;
            }
        } else {
            Mage::logException(new Exception('"$string" parameter for simplexml_load_string is not a string'));
        }
        return false;
    }
4

2 回答 2

1

由于您的错误是Opening and ending tag mismatch:调试的最快方法之一,因此禁用所有自定义 module/layout.xml 修改,然后一一重新启用它们,直到找到导致此错误的 xml。

于 2013-02-09T20:44:51.670 回答
0

通过编辑该配置文件,我能够 ech 路径并发现 xml 失败,开始标签是,结束标签是

我修复了它,然后它开始工作

于 2013-02-09T19:40:55.137 回答