Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

[Solved] Fatal error: Class 'DOMDocument' not found in /var/www/html/community/answers/...

netigatenetigate New
edited August 2013 in Vanilla 2.0 - 2.3


i am using the newest vanilla and wordpress version and managed to embed the forum into wordpress, but i cant get the comment integration working. check any pages or posts at

it just shows the error message:

Fatal error: Class 'DOMDocument' not found in /var/www/html/community/answers/library/core/functions.general.php on line 751

in the html output comes this:

<div id="vanilla-comments"></div>
<script type="text/javascript"> 
var vanilla_forum_url = ''; 
// Required: the full http url & path to your vanilla forum var vanilla_identifier = '31'; 
// Required: your unique identifier for the content being commented on var vanilla_url = ''; 
// Current page's url var vanilla_category_id = '9'; 
// Embed comments in this category (function() { var vanilla = document.createElement('script'); vanilla.type = 'text/javascript';
 var timestamp = new Date().getTime(); vanilla.src = vanilla_forum_url + '/js/embed.js';

(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(vanilla); })();

<noscript>Please enable JavaScript to view the <a href="">comments powered by Vanilla.</a></noscript>

vanilla is located at

do you guys have experience with this kind of error?


  • wow. we got this also fixed. our host "Evry" helped us out here again and did the following:

    However, DOMDocument is XML, so I have now installed php-xml which includes the following:


    I’ve reloaded httpd after installing php-xml.

    now everything is working like a charm.


Sign In or Register to comment.