Skip to content
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

PHP7.1 Notice: Undefined property: DOMDocument::$documentElement #461

Open
Raffaello opened this issue Mar 9, 2017 · 6 comments
Open

PHP7.1 Notice: Undefined property: DOMDocument::$documentElement #461

Raffaello opened this issue Mar 9, 2017 · 6 comments

Comments

@Raffaello
Copy link

Raffaello commented Mar 9, 2017


 [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]                         
                                                                                                       
    Unable to parse file "/var/www/xxx/vendor/braincrafted/bootstrap-bundle/Braincrafted/Bundle/B  
  ootstrapBundle/DependencyInjection/../Resources/config/services/form.xml".                           
                                                                                                       
                                                                                                       
                                                                                                       
                                                                                                       
    [InvalidArgumentException]                                                                         
                                                                                                       
    The XML file "/var/www/xxx/vendor/braincrafted/bootstrap-bundle/Braincrafted/Bundle/Bootstrap  
  Bundle/DependencyInjection/../Resources/config/services/form.xml" is not valid.                      
                                                                                                       
                                                                                                       
                                                                                                       
    [Symfony\Component\Debug\Exception\ContextErrorException]                                          
    Notice: Undefined property: DOMDocument::$documentElement                                          
                                                                                                       
  .                                                                                                    
                                                                               

anyone knows why i have this error?

php7.1-xml and libxml2 is installed.. What am i missing?

@inverse
Copy link

inverse commented Apr 18, 2017

@Raffaello did you make any progress with this error?

@Raffaello
Copy link
Author

@inverse Nope and now I cannot neither reproduce. Anyway sometimes was not present other yes. So I am guessing it is just related to some cache or similar. Or some other dependencies in the OS.

@inverse
Copy link

inverse commented Apr 19, 2017

@Raffaello We managed to work around the issue by upgrading the distribution-bundle.

https://packagist.org/packages/sensio/distribution-bundle#v4.0.38

Looks like this commit solved it: sensiolabs/SensioDistributionBundle@9546937

@ydiev
Copy link

ydiev commented Oct 2, 2017

I had same issue. In my case it had came from the "extension=dom.so". I guess because it was enabled twice. Once from php.ini and once from the mods-available/dom.ini. So I just deleted it from my php.ini file and it fixed the problem for me. Just sharing my solution here. Could help to someone.

@catchmareck
Copy link

catchmareck commented Nov 10, 2017

@ydiev I love you, man!!! I've been debugging some WP Plugin for a week and you've just ended my torture. Worked like a charm. Thank you for posting your solution!

@ghost
Copy link

ghost commented Jun 1, 2018

@ydiev tks guy! works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants