• Resolved Space

    (@bkno)


    I haven’t seen any issues on the front-end (errors are only logged) but found this in the PHP error log today:

    PHP warning:

    [06-Nov-2023 07:06:19 UTC] PHP Warning: Attempt to read property "taxonomy" on null in /home/site/public_html/wp-content/plugins/slim-seo/src/Breadcrumbs.php on line 99

    It is related to breadcrumbs but I’m not actually displaying breadcrumbs on the site, but the feature is enabled in Slim SEO settings.

    PHP Fatal Error:

    Appears to be assuming there is some taxonomy term but not finding one.

    [06-Nov-2023 07:06:19 UTC] PHP Fatal error: Uncaught TypeError: SlimSEO\Breadcrumbs::add_term_ancestors(): Argument #1 ($term) must be of type WP_Term, null given, called in /home/site/public_html/wp-content/plugins/slim-seo/src/Breadcrumbs.php on line 104 and defined in /home/site/public_html/wp-content/plugins/slim-seo/src/Breadcrumbs.php:172
    Stack trace: 0 /home/site/public_html/wp-content/plugins/slim-seo/src/Breadcrumbs.php(104): SlimSEO\Breadcrumbs->add_term_ancestors(NULL) 1 /home/site/public_html/wp-content/plugins/slim-seo/src/Schema/Types/Breadcrumbs.php(12): SlimSEO\Breadcrumbs->parse() 2 /home/site/public_html/wp-content/plugins/slim-seo/src/Schema/Types/Base.php(43): SlimSEO\Schema\Types\Breadcrumbs->is_active() 3 /home/site/public_html/wp-content/plugins/slim-seo/src/Schema/Manager.php(73): SlimSEO\Schema\Types\Base->add_reference('breadcrumb', Object(SlimSEO\Schema\Types\Breadcrumbs)) 4 /home/site/public_html/wp-content/plugins/slim-seo/src/Schema/Manager.php(28): SlimSEO\Schema\Manager->add_schemas() 5 /home/site/public_html/wp-includes/class-wp-hook.php(310): SlimSEO\Schema\Manager->output('') 6 /home/site/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) 7 /home/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 8 /home/site/public_html/wp-includes/general-template.php(3069): do_action('wp_footer') 9 /home/site/public_html/wp-content/themes/site/footer.php(27): wp_footer() 10 /home/site/public_html/wp-includes/template.php(785): require_once('/home/site/…') 11 /home/site/public_html/wp-includes/template.php(720): load_template('/home/site/…', true, Array) 12 /home/site/public_html/wp-includes/general-template.php(92): locate_template(Array, true, true, Array) 13 /home/site/public_html/wp-content/themes/site/category.php(17): get_footer() 14 /home/site/public_html/wp-includes/template-loader.php(106): include('/home/site/…') 15 /home/site/public_html/wp-blog-header.php(19): require_once('/home/site/…') 16 /home/site/public_html/index.php(17): require('/home/site/…') 17 {main} 
    thrown in /home/site/public_html/wp-content/plugins/slim-seo/src/Breadcrumbs.php on line 172

    These errors seem to be appearing quite frequently in the PHP error log.

    • This topic was modified 1 year ago by Space.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi @bkno,

    I can’t replicate the bug on my setup. But I’ve added a commit to prevent this bug from happening. It will be available in the next version.

    Thread Starter Space

    (@bkno)

    Amazing, thank you.

    Love the plugin keep up the great work.

    • This reply was modified 1 year ago by Space.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP warning and fatal error’ is closed to new replies.