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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | php_dom_requirement_00.patch | 1.17 KB | xano |
Comments
Comment #1
lostchord commentedThis can also make Artisteer Themes misbehave.
Comment #2
xanoThis 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.
Comment #3
xanoCan somebody please test this patch?
Comment #4
skizzo commentedI passed the DOMDocument availability test. But then, DOM/XML is indeed enabled in my php installation...
Comment #5
xanoAdded and committed to 6.x-3.x-dev.
Comment #6
xanoAdded and committed to 7.x-3.x-dev.
Comment #8
xano