Class 'DOMDocument' not found error in Drupal 7

Thought of trying out Drupal 7 after a long time, as much as I had used Drupal 6, I was expecting Drupal 7 to work out of the box for a system which was previously running Drupal 6.I noticed that, for some reason, there were these error messages in my httpd logs:

[Wed Jul 25 17:40:13 2012] [error] [client 127.0.0.1] PHP Fatal error:  Class 'DOMDocument' not found in /home/ausmarton/Public/website/drupal-7.7/modules/filter/filter.module on line 1041

Now, since I had worked quite a bit with version 6, I knew that all that needs to be done was this:

yum install php-xml
and
/sbin/service httpd reload 

And it did work! Well, so it looks like besides the usual php extensions like php-gd, php-mysql and others, Drupal 7 also needs php-xml to be able to work properly.

EDIT: I've tried this with PHP 5.3.11 on Apache 2.2.21.

Comments

  1. What version of php are you using when you got this error message? As I have having the same issue.

    ReplyDelete
    Replies
    1. I'm sorry, I should've mentioned that in the post itself. I tried this on PHP 5.3.11 with Apache 2.2.21 running on Fedora 17.

      Did you try installing the php-xml extension?

      Delete

Post a Comment

Popular posts from this blog

Errors while trying to monitor Asterisk through Nagios

Configuring remote access for couchdb

Proxy Error 502 “Reason: Error reading from remote server” with Apache 2.2.3