Magento-system.log中的大量调试,我该如何调试



首先:我不知道Magento结构是如何工作的

我看到了这个错误列表,它显然是非常无用的,因为我不明白我必须在我拥有的数千个文件中寻找什么:

2014-10-05T10:28:48+00:00 DEBUG (7): <config/>
2014-10-05T10:28:48+00:00 DEBUG (7): <config/>
2014-10-05T10:28:49+00:00 DEBUG (7): <config/>
2014-10-05T10:29:19+00:00 DEBUG (7): <config/>
2014-10-05T10:29:19+00:00 DEBUG (7): <config/>
2014-10-05T10:29:20+00:00 DEBUG (7): <config/>
2014-10-05T10:29:20+00:00 DEBUG (7): <config/>
2014-10-05T10:29:21+00:00 DEBUG (7): <config/>
2014-10-05T10:29:23+00:00 DEBUG (7): <config/>
2014-10-05T10:29:23+00:00 DEBUG (7): <config/>
2014-10-05T10:29:25+00:00 DEBUG (7): <config/>
2014-10-05T10:29:25+00:00 DEBUG (7): <config/>
2014-10-05T10:29:26+00:00 DEBUG (7): <config/>
2014-10-05T10:29:29+00:00 DEBUG (7): <config/>
2014-10-05T10:29:29+00:00 DEBUG (7): <config/>
2014-10-05T10:29:29+00:00 DEBUG (7): <theme />
2014-10-05T10:29:31+00:00 DEBUG (7): <?xml version="1.0"?><customgrid></customgrid>
2014-10-05T10:29:33+00:00 DEBUG (7): <?xml version="1.0"?><jstranslator></jstranslator>
2014-10-05T10:29:33+00:00 DEBUG (7): <?xml version="1.0"?><config></config>

这类错误同时出现在前端导航(2014-10-05T10:29:23+00:00 DEBUG (7): <config/>)(每个页面)和后端导航(这两种错误)中
所以我想知道是否有一种方法可以找到生成这些报告的确切xml文件
我在网上冲浪时看到了这几行代码:

header("Content-Type: text/xml");
echo Mage::app()->getConfig()->getNode()->asXml();exit;

但我不知道我必须把这个草图放在哪些文件中

我也遇到了类似的问题。问题是libVarienSimplexmlConfig.php方法loadString:中留下的旧调试代码

if(!$xml){ Mage::log($string); } 

最新更新