Apache, PHP, “Aviso de E / S: falha ao carregar entidade externa” às vezes

3

Estou tentando instalar o CDash no VPS. Geralmente funciona muito bem por um tempo depois que o apache é reiniciado, mas após alguns minutos ele começa a falhar aleatoriamente com os seguintes erros:

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

Estou usando o Ubuntu Server 13.10. Eu tentei CDash 2.0.2 e versão mais recente do tronco svn com o mesmo resultado.

    
por dawid 21.02.2014 / 14:45

1 resposta

5

Eu resolvi isso adicionando libxml_disable_entity_loader(false); no início do arquivo cdash/common.php . Inspirado por link

    
por 24.02.2014 / 11:44