• Resolved frontiers

    (@frontiers)


    [28-Sep-2021 16:11:07 UTC] PHP Warning: Attempt to read property “term_id” on array in /wp-content/plugins/slim-seo/src/Sitemaps/Taxonomy.php on line 47

    [28-Sep-2021 16:11:07 UTC] PHP Fatal error:  Uncaught TypeError: ltrim(): Argument #1 ($string) must be of type string, WP_Error given in /wp-includes/formatting.php:4315
    Stack trace:
    #0 /wp-includes/formatting.php(4315): ltrim(Object(WP_Error))
    #1 /wp-content/plugins/slim-seo/src/Sitemaps/Taxonomy.php(38): esc_url(Object(WP_Error))
    #2 //wp-content/plugins/slim-seo/src/Sitemaps/Manager.php(63): SlimSEO\Sitemaps\Taxonomy->output()
    #3 /wp-includes/class-wp-hook.php(303): SlimSEO\Sitemaps\Manager->output('')
    #4 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(false, Array)
    #5 /wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #6 /wp-includes/template-loader.php(13): do_action('template_redire...')
    #9 {main}  thrown in /wp-includes/formatting.php on line 4315

    Only when try add site map with slim SEO

    I use PHP8.0 + WP 5.8.1 nginx / cloudflare.

    • This topic was modified 3 years, 2 months ago by frontiers. Reason: sensitive information
    • This topic was modified 3 years, 2 months ago by frontiers.
    • This topic was modified 3 years, 2 months ago by frontiers.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter frontiers

    (@frontiers)

    I did remove the PLUGIN for now since making a FATAL error.

    Plugin Author Anh Tran

    (@rilwis)

    Hi @frontiers,

    Thanks for your feedback. Can you please let me know which taxonomy sitemap that causes the error?

    Thread Starter frontiers

    (@frontiers)

    I know only that when I enable that causing issues on my site.

    The only thing had was this LOG above. I dont how solve this error. Maybe can put me in the right direction.

       // To disable schema for breadcrumbs.
        add_filter( 'slim_seo_schema_breadcrumbs_enable', '__return_false' );
        
    
        // Remove all taxonomies from the sitemap.
        add_filter( 'slim_seo_sitemap_taxonomies', '__return_empty_array' );

    I tryed used filters…..
    But would not make any diffrence. The only way plugin works if I keep SITE map option OFF.

    Thread Starter frontiers

    (@frontiers)

    I trying to debug some other things since might conflict with your plugin.

    Thread Starter frontiers

    (@frontiers)

    https://www.ads-software.com/plugins/wp-cloudflare-page-cache/

    This plugin seems make the conflict in my setup.

    Since now I have installed Slim SEO and site map is found without errors.

    I will make log and see if it solved now.

    Thread Starter frontiers

    (@frontiers)

    PHP Warning: Undefined array key “path” in /wp-includes/canonical.php on line 590
    PHP Warning: Undefined array key “scheme” in /wp-includes/canonical.php on line 720
    wp-includes/canonical.php on line 590
    wp-includes/canonical.php on line 687
    wp-includes/canonical.php on line 696
    wp-includes/canonical.php on line 699
    canonical.php on line 720

    Thread Starter frontiers

    (@frontiers)

    SOLVED.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Sitemap option ON error.’ is closed to new replies.