Support » Plugin: AMP for WordPress » black and white screen of death

  • Resolved tradesouthwest


    Getting Warning: DOMElement::setidAttribute ID theAuthor already defined in …/plugins/simple-amp-master… on line 424 error.
    This message appears ten or more times then down past the messages you can see the site but the plugin does not take on the styles of the original theme (maybe I will try installing as a child theme and switch enqueue to stylesheet.)

    I just wanted to post the errors I am getting incase something with the_author_ tag is funky.

Viewing 3 replies - 1 through 3 (of 3 total)
  • tradesouthwest


    wp-content/plugins/simple-amp-master/vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php on line 424

     // This is necessary on a non-DTD schema, like HTML5.
                if ($aName == 'id') {
                    $ele->setIdAttribute('id', false);

    When I change to the above (false not true) everything works fine. As a note, I use a theme that is being reviewed right now so it is passing all test. the theme uses the_author tag in a custom page template to display author attributes. this may be triggerring the errors and this might need a filter to handle non-DTD schema attributes that are parsed by custom themes.

    Hope this helps.



    And here is the only code related to author ID

    <h4><?php echo esc_html( get_the_author_meta( 'first_name' ) ); ?>
                    <span class="sepspace"> </span>
                    <?php echo esc_attr(nl2br( get_the_author_meta( 'last_name' ))); ?></h4>
                        <ul class="list-group">
                        <li class="list-group-item">
                        <?php esc_html_e( 'Author Website ', 'appeal' );
                              the_author_link(); ?></li>
                        <li class="list-group-item">
                            <?php the_author_meta('description'); ?></li>
                        <li class="list-group-item">
                            <?php esc_html_e( 'Archives for ', 'appeal' );
                                  the_author_posts_link(); ?></li>
                        <li class="list-group-item"><b><?php the_author_posts(); ?></b>
                        <?php esc_html_e( 'Articles by ', 'appeal' ); ?> <?php the_author(); ?></li>
                        <li class="list-group-item">
                        <?php echo esc_url(the_author_meta('email')); ?></li>
    Plugin Author Weston Ruter


    It looks like you’re reporting an issue with the “Simple AMP” plugin not the “AMP” plugin. Please open an issue on that plugin’s support forum instead.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘black and white screen of death’ is closed to new replies.