间歇性 simplexml_load_file():本地 Joomla 站点上的 I/O 警告

2023-10-11php开发问题
4

本文介绍了间歇性 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.

完整的警告是:

警告:simplexml_load_file():I/O 警告:无法在/site/libraries/joomla/language/language 中加载外部实体/site/language/en-GB/en-GB.xml".php 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

感谢 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 警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

PHP实现DeepL翻译API调用
DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以...
2025-08-20 php开发问题
168

PHP通过phpspreadsheet导入Excel日期数据处理方法
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的...
2024-10-23 php开发问题
287

mediatemple - 无法使用 codeigniter 发送电子邮件
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)...
2024-08-23 php开发问题
11

Laravel Gmail 配置错误
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)...
2024-08-23 php开发问题
16

将 PHPMailer 用于 SMTP 的问题
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)...
2024-08-23 php开发问题
4

关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)...
2024-08-23 php开发问题
17