间歇性simplexml_load_file():本地Joomla站点上的I/O警告 [英] Intermittent simplexml_load_file(): I/O warning on local Joomla site

查看:74
本文介绍了间歇性simplexml_load_file():本地Joomla站点上的I/O警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在本地运行的joomla开发站点的所有页面上开始出现间歇性错误.

I've just started getting an intermittent error on all pages of a joomla dev site I'm running on localhost.

完整警告为:

Warning: simplexml_load_file(): I/O warning : failed to load external entity "/site/language/en-GB/en-GB.xml" in /site/libraries/joomla/language/language.php on line 1354

奇怪的是,它是断断续续的,只需刷新几下即可解决问题.

The strange thing is that it is intermittent and a few refreshes will usually resolve the problem.

是否存在可能导致此问题的代码问题?

Is there a code problem that could be causing this or is it something else?

推荐答案

目前尚无定论说该修复程序有效,但看来目前已经修复了.

It's early days yet to say conclusively that this fix works but it seems to have fixed it for now.

编辑:自进行此更改以来未再发生任何重复,因此我可以确认这已解决了该问题.

Haven't seen any reoccurrence since making this change so I can confirm that this has resolved the problem.

libxml_disable_entity_loader(false);添加到joomla的index.php

add libxml_disable_entity_loader(false); to joomla's index.php

在此帖子中,Credit进入Joomla论坛上的Corneliu:

Credit goes to Corneliu on the Joomla forum for his post in this thread:

J! 3.1.6/3.2 simplexml_load_file,JForm :: getInstance错误

这篇关于间歇性simplexml_load_file():本地Joomla站点上的I/O警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆