WordPress.org

Ready to get started?Download WordPress

Forums

New DOMDocument totally disrupts WP (3 posts)

  1. toddiceton
    Member
    Posted 4 years ago #

    I'm trying to use DOMDocument in a plugin. Here's the problem line:

    $wpa_doc = new DOMDocument();

    This works fine outside of WP on the same server, but even in an otherwise-empty plugin with only this line, visiting the site returns a totally blank page. Putting this in a content filter function displays everything up to the content.

    Is there some sort of problem with using DOMDocument in WP?

  2. toddiceton
    Member
    Posted 4 years ago #

    Could a mod please move this to WP-Advanced?

    Thanks!

    [moved to WP Advanced forum]

  3. toddiceton
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic