• Resolved webheadcoder

    (@webheadllc)


    Hi,

    I’m getting a fatal error that is happening occasionally. I haven’t seen it while viewing the site, just in the logs. I just upgraded to PHP 8.0 so it may be due to that.

    PHP Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /wp-includes/http.php:683
    Stack trace:
    #0 /wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(295): wp_parse_url(Object(WP_Error), 5)
    #1 /wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(269): WPSEO_Sitemaps_Renderer->encode_url_rfc3986(Object(WP_Error))
    #2 /wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(218): WPSEO_Sitemaps_Renderer->encode_and_escape(Object(WP_Error))
    #3 /wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php(111): WPSEO_Sitemaps_Renderer->sitemap_url(Array)
    #4 /wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php(366): WPSEO_Sitemaps_Renderer->get_sitemap(Array, 'recognition', 1)
    #5 /wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php(261): WPSEO_Sitemaps->build_sitemap('recognition')
    #6 /wp-includes/class-wp-hook.php(307): WPSEO_Sitemaps->redirect(Object(WP_Query))
    #7 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #8 /wp-includes/plugin.php(524): WP_Hook->do_action(Array)
    #9 /wp-includes/class-wp-query.php(1805): do_action_ref_array('pre_get_posts', Array)
    #10 /wp-includes/class-wp-query.php(3586): WP_Query->get_posts()
    #11 /wp-includes/class-wp.php(648): WP_Query->query(Array)
    #12 /wp-includes/class-wp.php(775): WP->query_posts()
    #13 /wp-includes/functions.php(1330): WP->main('')
    #14 /wp-blog-header.php(16): wp()
    #15 /index.php(17): require('/nas/content/li...')
    #16 {main}
     thrown in /wp-includes/http.php on line 683
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error in class-sitemaps-renderer’ is closed to new replies.