Skip to content

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

@Raffaello

Description

@Raffaello

 [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?

Activity

inverse

inverse commented on Apr 18, 2017

@inverse

@Raffaello did you make any progress with this error?

Raffaello

Raffaello commented on Apr 19, 2017

@Raffaello
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

inverse commented on Apr 19, 2017

@inverse

@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

ydiev commented on Oct 2, 2017

@ydiev

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

catchmareck commented on Nov 10, 2017

@catchmareck

@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

ghost commented on Jun 1, 2018

@ghost

@ydiev tks guy! works for me.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @inverse@Raffaello@ydiev@catchmareck

        Issue actions

          PHP7.1 Notice: Undefined property: DOMDocument::$documentElement · Issue #461 · braincrafted/bootstrap-bundle