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

Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.
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

Hi,

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 http://community.netigate.net/pagetest/

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 = 'http://community.netigate.net/answers/'; 
// 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 = 'http://community.netigate.net/pagetest/'; 
// 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="http://vanillaforums.com/?ref_noscript">comments powered by Vanilla.</a></noscript>

vanilla is located at http://www.community.netigate.net/answers

do you guys have experience with this kind of error?

Comments

  • 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:

    /usr/lib64/php/modules/dom.so
    /usr/lib64/php/modules/wddx.so
    /usr/lib64/php/modules/xmlreader.so
    /usr/lib64/php/modules/xmlwriter.so
    /usr/lib64/php/modules/xsl.so

    I’ve reloaded httpd after installing php-xml.

    now everything is working like a charm.

    close

Sign In or Register to comment.