Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1242366
    jm139
    Participant

    Hi,

    I created a new post and see this message at the bottom of the post:

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/aamus395/public_html/labs/wp-content/themes/x/framework/views/renew/_content-post-footer.php on line 13

    Normally the comment box would appear around that area. It is not happening on other posts.

    URL: http://labs.aam-us.org/blog/moving-to-accessible-digital-video/
    Wordpress Version: 4.6.1
    X Version: 4.6.2
    Cornerstone Version: 1.3.2

    Josh

    #1242433
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    Kindly update your current X-theme version to the latest version i.e. X version: 4.6.4 first.

    Hope this helps!

    Thank you.

    #1242570
    jm139
    Participant

    Ok. Updated to 4.6.4. The error is still there. Any ideas?

    Josh

    #1242575
    jm139
    Participant

    Ok I figured a part of this out. It doesn’t like when we add tags. I removed the tags and published and did not get the error. As soon as I add a single tag I see the error. We need to be able to have tags on our posts. Any ideas?

    Josh

    #1242774
    Jade
    Moderator

    Hi Josh,

    Please try to add this in the functions.php code of the child theme:

    
    add_action('x_after_view_global__content', 'add_post_tags');
    
    function add_post_tags() {
        if( is_singular('post') ) {
         if ( has_tag() ) : ?>
          <footer class="entry-footer cf">
            <?php echo get_the_tag_list( '<p><i class="x-icon-tags"></i> Tags: ', ', ', '</p>' ); ?>
          </footer>
        <?php endif;
        }
    }

    Then add this in the custom CSS:

    .entry-footer {
        margin-top: 1.5em;
        padding: 1em 1.25em;
        line-height: 1.4;
        background-color: #f9f9f9;
        display:block;
    }
    
    .cf:before, .cf:after {
        display: table;
        content: "";
    }
    
    .cf:after {
        clear: both;
    }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1242366 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>