-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WARNING 1549] failed to load external entity #9731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can verify i have seen theese aswell from time to time. Also they are very prevalent on Google Appe Engine. |
re #9483 |
It might be related, but I don't run GAE. Just a WAMP setup. |
try to remove/disable xdebug and see if you get it, this error is related on the php implementation, it only happens on the SDK of GAE and if i run it in a linux box it does work perfectly, this was a problem at some point but got resolved and the issue was quiet blur and because of php. |
I tried disabling xdebug before and the issue was still there. I just checked the loaded extensions and memcache was also loaded. I disabled that one and will monitor how it goes. Right now besides xdebug no 3rd party extensions are loaded. |
Even when all 3rd party extensions are disabled, the error is still there once in a while. The error is only triggered by Symfony based apps. Apps based and services based on other frameworks (ZF2 and CI) do not trigger this error. |
same here |
same here php --version |
Restarting php5-fpm seemed to solve the issue for me. |
Has anyone fixed the problem? I've tried everything suggested in this and other topics and nothing worked.. :/ Thanks |
did you upgrade php? 👶 |
yes.... |
I've submitted a PR in #10493 that should solve this issue, can you have a look? |
I tested the PR locally because I couldn't work because of this error... It seems to be working now. It would be great to merge the fix. |
…tity_loader usage (romainneutron) This PR was merged into the 2.3 branch. Discussion ---------- [2.3] Fix libxml_use_internal_errors and libxml_disable_entity_loader usage | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #9731, #9483 | License | MIT This should fix #9731 and #9483 that seems to be triggered when `libxml_disable_entity_loader` has been called with `true` (see https://bugs.php.net/bug.php?id=62577) As `libxml_disable_entity_loader` is non thread safe (see https://bugs.php.net/bug.php?id=64938) and as we have some calls that might leave the setting to `true`, I think the bug should be fixed. I've checked the use of both `libxml_use_internal_errors` and `libxml_disable_entity_loader` among symfony code. You can see I prefered to skip DomDocument::loadXML warnings using the `@` instead of using `LIBXML_NOERROR | LIBXML_NO_WARNING` because we can log these errors whereas libxml errors would be furtives. - [x] Check calls to DOMDocument::load - [x] Check calls to DOMDocument::loadXML - [x] Check calls to DOMDocument::loadHTML - [x] Check calls to DOMDocument::loadHTMLFile - [x] Add more tests Commits ------- 489b8ae Fix libxml_use_internal_errors and libxml_disable_entity_loader usage
Check PR #11259 if you're still having issues with this. |
I'm still having this issue in dev environment from time to time, with Symfony 2.6, 2.7 and 2.8. The only workaround is to restart the process running PHP (either FPM or Apache). Here an error report with the php modules and libraries : http://pastebin.com/0CZwwvK9 This happens in a container using only packages from Debian Jessie but it also happens in a VM with Wheezy. |
In two Symfony 2.4.0 projects I get these errors once in a while:
After manual removing the dev and prod cache dirs and log files I get other errors:
There are 2 ways I can bypass this error:
The full error report is here: http://pastebin.com/jMfdB20u
The text was updated successfully, but these errors were encountered: