FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » PHP Fatal error: Class 'DOMDocument' not found
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
PHP Fatal error: Class 'DOMDocument' not found [message #166639] Sat, 04 February 2012 00:25 Go to next message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma: 0
Senior Member

As the title states

PHP Fatal error:  Class 'DOMDocument' not found in /home/wspirates/domains/forums.wspirates.com/FUDforumwsp/scripts/xmlagg.php on line 79


This happens when setting up an RSS feed (XML Aggregation)

Happens running from the browser as the apache user and on the cli as another user.

I don't have this class defined anywhere it seems

[DATA_DIR]
grep -ir DOMDocument *
errors/.backup/xmlagg.php_40f48b387cc586d14f67db620c7e4f04_1327730319: $doc = new DOMDocument();
plugins/openid/lib/XML.php: $this->doc = new DOMDocument;
scripts/xmlagg.php: $doc = new DOMDocument();
scripts/xmlagg.php_1.log:PHP Fatal error: Class 'DOMDocument' not found in /home/wspirates/domains/forums.wspirates.com/FUDforumwsp/scripts/xmlagg.php on line 79


FUDforum: 3.0.3
PHP: 5.3.9
Database: mysql 5.5.19 (mysql)
Operating system: Linux 3.1.6-1.fc16.i686

Re: PHP Fatal error: Class 'DOMDocument' not found [message #166644 is a reply to message #166639] Sat, 04 February 2012 08:57 Go to previous messageGo to next message
NeXuS is currently offline  NeXuS
Messages: 121
Registered: July 2010
Location: South Korea
Karma: 5
Senior Member
Contributing Core Developer
You need to have the proper PHP extensions installed. The specific package names change from distro to distro.
Re: PHP Fatal error: Class 'DOMDocument' not found [message #166647 is a reply to message #166644] Sat, 04 February 2012 11:01 Go to previous message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma: 0
Senior Member

Ahh thank you. I will ask the admin.

For anyone searching for this and are using a Red Hat system:

http://blog.randell.ph/2010/10/01/php-fatal-error-class-domdocument-not-fou nd/

yum install php-xml

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Disabled forum message saving in GLOBALS.php with \r\n
Next Topic: Non-moderated forums prompting for approval
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 23:16:41 GMT 2024

Total time taken to generate the page: 0.02534 seconds