The standard install of PHP on RedHat Fedora is compiled with --disable-dom and does not include the DOMDocument classes. The PHP XML libraries are distributed in a separate rpm package.

To install the PHP XML libraries :

yum install php-xml

You might want to add a note about this on the module page or release notes, otherwise users will get 'class not found' errors when they upgrade from version 2.1 to 3.0 of the module.

CommentFileSizeAuthor
#2 php_dom_requirement_00.patch1.17 KBxano

Comments

lostchord’s picture

This can also make Artisteer Themes misbehave.

xano’s picture

Title: XML libraries on RedHat Fedora » Check if PHP's DOM is installed
Component: Documentation » Code
Assigned: Unassigned » xano
Category: support » bug
Status: Active » Needs review
StatusFileSize
new1.17 KB

This is a bug, because the code should not rely on requirements that do not necessarily have to be met without checking. This patch implements hook_requirements(), which should prevent users from installing ELF if PHP hasn't got the DOM installed.

xano’s picture

Can somebody please test this patch?

skizzo’s picture

Version: 6.x-3.0-alpha1 » 6.x-3.x-dev

I passed the DOMDocument availability test. But then, DOM/XML is indeed enabled in my php installation...

xano’s picture

Status: Needs review » Fixed

Added and committed to 6.x-3.x-dev.

xano’s picture

Added and committed to 7.x-3.x-dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

xano’s picture

Assigned: xano » Unassigned