1129 Posts in 1271 Topics by 401 members
|Go to End|
8 July 2010 at 2:19pm
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)?
17 July 2010 at 6:00pm Last edited: 17 July 2010 6:04pm
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.
7 April 2011 at 1:04am
This was posted a long time, but helped me out on a centos server which did not have this mod by default, thanks!
|Go to Top|