index.php magento上的脚本头过早结束


Premature end of script headers on index.php magento

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

当我浏览我们的网站www.thepreterspo.com时,它在chrome(即firefox)上运行良好。然而,当我在Internet explorer上访问www.thepreterspo.com/admin上的管理员时,它会显示500内部服务器错误,之后如果我尝试使用Internet explorer访问www.thePreterspo.com,它会出现相同的错误。同时,我可以在谷歌Chrome或Firefox上浏览网站,它可以毫无问题地工作。

当它工作时,在Internet Explorer上加载需要很长时间。而铬仍然负载完美。

我在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;
    }

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

通过编辑该配置文件,我能够确定路径并找到失败的xml,开始标记为,结束标记为

我解决了这个问题,然后它开始工作