Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
index.php magento上的脚本头过早结束_Php_Apache_Magento - Fatal编程技术网

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

index.php magento上的脚本头过早结束,php,apache,magento,Php,Apache,Magento,我对此进行了大量搜索,但到目前为止,没有任何解决方案有效,因此我想我确实需要进行故障排除,以了解问题所在: 当我浏览我们的网站www.theprinterdepo.com时,它在chrome、ie或firefox上运行良好。 但是,当我在Internet explorer上访问www.theprinterdepo.com/admin上的管理员时,它会显示500内部服务器错误,之后如果我尝试使用Internet explorer访问www.theprinterdepo.com,它会显示相同的错误。

我对此进行了大量搜索,但到目前为止,没有任何解决方案有效,因此我想我确实需要进行故障排除,以了解问题所在:

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

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

我在index.php中设置了chmod755

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

通过编辑该配置文件,我能够对路径进行ech,并发现xml失败,开始标记为,结束标记为


我修复了这个问题,然后它开始工作了,因为您的错误是打开和结束标记不匹配:最快的调试方法之一是禁用所有自定义模块/layout.xml修改,然后逐个重新启用它们,直到找到导致此错误的xml。

加载了
adminhtml.xml
,当您使用url
www.theprinterdepo.com/admin
上的任何其他浏览器时?我不知道如何检查?我也在cpanel上搜索了那个文件,有太多了,我应该检查哪一个来寻找丢失的标签?在我在index.php中添加了错误处理行并尝试使用chrome访问管理员后,它显示了与Internet Explorer中完全相同的错误。我想我必须找到有问题的adminhtml.xml,但它是哪一个?\n我找到了echo$filepath有错误的xml,然后我可以解决它。