Apache、PHP、“I/O 警告:加载外部实体失败”有时

daw*_*wid 3 php apache-2.4

我正在尝试在 VPS上安装CDash。通常它在 apache 重新启动后工作一段时间很好,但几分钟后它开始随机失败并出现以下错误:

Warning: XSLTProcessor::importStylesheet(): I/O warning : failed to load external entity "/cdash/footer.xsl" in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): compilation error: file /cdash/ line 4 element include in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): xsl:include : unable to load /cdash/footer.xsl in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): I/O warning : failed to load external entity "/cdash/local/footer.xsl" in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): compilation error: file /cdash/ line 5 element include in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): xsl:include : unable to load /cdash/local/footer.xsl in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): I/O warning : failed to load external entity "/cdash/headscripts.xsl" in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): compilation error: file /cdash/ line 6 element include in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): xsl:include : unable to load /cdash/headscripts.xsl in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): I/O warning : failed to load external entity "/cdash/local/headscripts.xsl" in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): compilation error: file /cdash/ line 7 element include in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): xsl:include : unable to load /cdash/local/headscripts.xsl in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::transformToXml(): No stylesheet associated to this object in /cdash/cdash/common.php on line 65
Run Code Online (Sandbox Code Playgroud)

我正在使用 Ubuntu Server 13.10。我已经尝试了 CDash 2.0.2 和来自 svn trunk 的最新版本,结果相同。

daw*_*wid 5

我通过libxml_disable_entity_loader(false);cdash/common.php文件开头添加解决了这个问题。灵感来自/sf/ask/1437440651/