• I am getting this error message after I updated from 4.5.3 to 4.6 for all blog post entries and the parent blog page

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

    this seems but tripped but by the following line
    <?php echo get_the_tag_list(); ?>

    I have since restored back to 4.5.3 for both files and database

    I am hosted on Siteground and using the X theme. All plugins are up to date.

    here is a link to my site: https://www.devon.photography/devon-photography-blog/
    BUT please be aware that as I have restored back to 4.5.3 I no longer have a problem. I am willing to update to 5.6 when required to help with any bug fixes

    Thanks

    Scot

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Your theme “x” seems to be the error.

    Make sure it is up to date – compatible with 4.6. If in doubt, contact the theme’s developer/vendor.

    Thread Starter scotbaston

    (@scotbaston)

    This is the response from the theme support

    Hi there,

    This file has this code /home/zoomingw/public_html/zoomfeet/wp-content/themes/x/framework/views/integrity/_content-post-footer.php

    <?php

    // =============================================================================
    // VIEWS/INTEGRITY/_CONTENT-POST-FOOTER.PHP
    // —————————————————————————–
    // Standard <footer> output for various posts.
    // =============================================================================

    ?>

    <?php if ( has_tag() ) : ?>
    <footer class=”entry-footer cf”>
    <?php echo get_the_tag_list(); ?>
    </footer>
    <?php endif; ?>
    Line 13 is the <?php echo get_the_tag_list(); ?> and get_the_tag_list() is a WordPress’s reserved function. Which is part of WordPress core. It’s not the theme that’s throwing the error, but that function built-in to WordPress. Hence yes, the issue might be related to WordPress core files which are specific to its version. Though, I’m not getting that issue on my installation which also means WordPress core files and hosting setup might have something that causing it.

    Thanks!

    Moderator t-p

    (@t-p)

    Try switching to the unedited default Theme (Twenty Sixteen) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins). If you don’t have access to your admin area, use FTP , or your web-host’s cPanel or whatever file management application your host provides (no Dashboard access required). Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘moving to WP4.6 causes Catchable fatal error: Object of class WP_Error’ is closed to new replies.