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

HHVM 3.3.0-dev - [ERROR 3067] Failed to parse the XML resource #3751

Closed
Macsch15 opened this Issue Sep 14, 2014 · 8 comments

Comments

Projects
None yet
7 participants
@Macsch15
Copy link

Macsch15 commented Sep 14, 2014

Hello,
I use Translations from Symfony 2 and xliff format for resource, but HHVM 3.3.0-dev (hhvm-nightly) throws errors in tests:

[ERROR 3067] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to parse the XML resource 'file:////home/travis/build/Macsch15/Tricolore/library/Symfony/Component/Translation/Loader/schema/dic/xliff-core/xml.xsd'. (in in_memory_buffer - line 33, column 0)

https://travis-ci.org/Macsch15/Tricolore/jobs/35261477

On PHP 5.5, 5.6 and HHVM 3.2.0 works fine.

It's HHVM fault or... maybe Symfony?

@paulbiss

This comment has been minimized.

Copy link
Contributor

paulbiss commented Sep 14, 2014

@fredemmott

This comment has been minimized.

Copy link
Contributor

fredemmott commented Sep 15, 2014

This is disabled by default as it's a security issue; this is documented (including how to re-enable it) here: https://github.com/facebook/hhvm/blob/master/hphp/doc/inconsistencies#L145

@fredemmott fredemmott closed this Sep 15, 2014

@seeruk

This comment has been minimized.

Copy link

seeruk commented Sep 22, 2014

After following the instructions on how to re-enable the feature, I'm still getting this issue. What exactly would I have to put in to read from http and file protocols?

@ptarjan

This comment has been minimized.

Copy link
Contributor

ptarjan commented Sep 22, 2014

@seeruk in /etc/hhvm/php.ini put

hhvm.libxml.ext_entity_whitelist = file,http
@seeruk

This comment has been minimized.

Copy link

seeruk commented Sep 23, 2014

Does this also work with console applications using HHVM? See #3797

@ptarjan

This comment has been minimized.

Copy link
Contributor

ptarjan commented Sep 23, 2014

Yes, /etc/hhvm/php.ini is read in console invocations

@baptistedonaux

This comment has been minimized.

Copy link

baptistedonaux commented Nov 19, 2014

I have the same problem with HHVM 3.4. The fix of @seeruk works for me ! Thanks

@jrborbars

This comment has been minimized.

Copy link

jrborbars commented Mar 9, 2015

Yes. HHVM 3.4.2 in arch linux and the problem has gone! Thanks! The fix of @seeruk works for me too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment