Apache、PHP,有时会出现“I/O 警告:无法加载外部实体”

Apache、PHP,有时会出现“I/O 警告:无法加载外部实体”

我正在尝试安装錄影在 VPS 上。通常在 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

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

答案1

我通过libxml_disable_entity_loader(false);在文件开头添加来解决这个问题cdash/common.php。灵感来自https://stackoverflow.com/questions/20534866/intermittent-simplexml-load-file-io-warning-on-local-joomla-site

相关内容