• Resolved HaloPinay

    (@halopinay)


    Catchable fatal error: Argument 1 passed to DOMDocument::importNode() must be an instance of DOMNode, null given, called in (mypath)/wp-content/themes/creative-blog/template-parts/content-quote.php on line 13 and defined in (mypath)/wp-content/themes/creative-blog/inc/extras.php on line 665

    I replaced my directory names with (mypath)

    This appeared on https://(mydomain)/category/articles

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter HaloPinay

    (@halopinay)

    I forgot to note, I’m using a blank child theme and haven’t made any edits yet.

    My style.css

    /*
    Theme Name: Creative Child
    Template: creative-blog
    */

    My functions.php

    <?php
    
    add_action('wp_enqueue_scripts', 'theme_enqueue_styles');
    function theme_enqueue_styles() {
        wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css');
    }
    Thread Starter HaloPinay

    (@halopinay)

    Something else to note: this is what’s offending I suppose

    <article id="post-53" class="post-53 post type-post status-publish format-quote hentry category-articles post_format-post-format-quote">

    Thread Starter HaloPinay

    (@halopinay)

    I think this is because of the lack of blockquote in the page. However, it may be a good idea to add an else statement to the core so that if a blockquote is missing in the post, an empty one is inserted or something by default.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Catchable fatal error’ is closed to new replies.