Support » Plugin: Yoast SEO » PHP Notice: Trying to get property ‘canonical’ of non-object

  • Resolved hastibe

    (@hastibe)


    In our debug.log, we’re getting a lot of the PHP notices below. Is this normal and is there a way to resolve them (or for your team to resolve them in a future update)?

    PHP Notice: Trying to get property 'canonical' of non-object in .../wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @hastibe

    Thanks for sharing the error with us. It would be helpful if you could let us know how to reproduce the error. Do you by chance know what triggered the error?

    Thread Starter hastibe

    (@hastibe)

    Unfortunately, I am not sure what specifically is triggering the error, as the entry is showing-up several hundred times each day in the debug.log — maybe certain page views by users?

    Plugin Support Suwash

    (@suascat_wp)

    @hastibe

    We would like to continue to investigate this issue and therefore, we expect few more information about your setup. This might help us replicate the issue on our end:

    1. Can you confirm you are using the most recent Yoast SEO, v20.8? If you update, does the issue resolve?

    2. Are all your non-Yoast plugins and themes also updated?

    3. Can you confirm you are using WordPress 6.2? Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/.

    4. Have you performed SEO Data Optimization (SEO > Tools)? Does this help to prevent errors?

    We look forward to hearing from you.

    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

    Thread Starter hastibe

    (@hastibe)

    Yikes, it has only been like 72 hours since the last post!

    We can confirm #1-3. We have performed #4 and are monitoring whether it has resolved the errors, and will post back with an update.

    Thread Starter hastibe

    (@hastibe)

    @suascat_wp — to follow-up on my previous post: running SEO Data Optimization did not help prevent the issue, unfortunately:

    [13-Jun-2023 01:59:25 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 01:59:25 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 02:14:24 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 02:14:24 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 02:29:49 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 02:29:49 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 02:42:55 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 02:42:55 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 02:57:18 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 02:57:18 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:09:15 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:09:15 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:22:29 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:22:29 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:31:07 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:31:07 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:34:09 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:34:09 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:47:48 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 03:47:48 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:05:36 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:05:36 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:23:40 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:23:40 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:37:12 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:37:12 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:44:54 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:44:54 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:59:59 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 04:59:59 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 05:08:37 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 05:08:37 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 05:16:05 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 05:16:05 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 05:30:43 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 05:30:43 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 05:42:02 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 05:42:02 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 06:00:31 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    
    [13-Jun-2023 06:00:31 UTC] PHP Notice:  Trying to get property 'canonical' of non-object in /wp-content/plugins/wordpress-seo/src/integrations/front-end/feed-improvements.php on line 160
    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for re-opening the thread. Another user has opened a GitHub issue related to those errors, and our developers are investigating.

    If you have more information that could help, you could add a comment to the report.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.