Jump to:

1169 Posts in 2694 Topics by 411 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » 'DOMDocument' not found in ../sapphire/integration/HTMLValue.php on line 20

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2021 Views
  • msouden
    Avatar
    6 Posts

    'DOMDocument' not found in ../sapphire/integration/HTMLValue.php on line 20 Link to this post

    I'm getting "Fatal error: Class 'DOMDocument' not found in ../sapphire/integration/HTMLValue.php on line 20. When accessing /admin and when I go to /dev and try some of the testing tools it's asking me to install a package on the server called php-pear. The site front end seems to function still, and it's in dev mode, but unfortunately that's all I'm getting in terms of feedback (but dev mode does rock guys, thanks).

    So, when I search I find this thread: http://silverstripe.org/installing-silverstripe/show/282525 which sounds like the server's missing a package - which I installed (like Judge) - but it doesn't fix it for me.

    Now - this is where it gets complicated - because I'm on a client's server and he's running nginx (essentially apache rewritten by some crazy Russian to be lean so I'm told) which I've never used before. So - I don't know exactly if these packages are needed here as a result of the upgrade to 2.4? It seems unlikely as this would be detailed in the upgrade docs. SS 2.3.6 runs beautifully on this server, so I'm all sorts of confused, but leaning toward nginx not being the issue here.

    So - is my install buggered, or do nginx and SS not play nice during upgrade - and if not, why? Or did I get a bum copy (2 actually) of SS2.4 in transit (I didn't see a checksum offered), or is there some other thing I'm missing (most likely the case)?

    Much thanks,
    Matt

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: 'DOMDocument' not found in ../sapphire/integration/HTMLValue.php on line 20 Link to this post

    It looks like there is indeed a missing module in your server's PHP installation.

    The SilverStripe installer checks for DOMDocument being available from now on as well.

    Which server setup are you using to host your SilverStripe site? Most Linux distributions have a package called either php5-xml or php-xml which should fix your problem if you install it, provided you're using PHP with your distribution package manager and not compiled manually.

    I'd ask your web host to investigate this for you if you can't figure it or don't have permission to install new packages.

    Cheers,
    Sean

  • bartvanirsel
    Avatar
    Community Member
    94 Posts

    Re: 'DOMDocument' not found in ../sapphire/integration/HTMLValue.php on line 20 Link to this post

    Hi,

    This was posted a long time, but helped me out on a centos server which did not have this mod by default, thanks!

    Bart

    2021 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.