• Resolved Robert Kampas

    (@ironleg)


    I’m maintaining WordPress website that is:

    * WordPress 5.5.1
    * Slim SEO 3.6.0
    * PHP 7.3
    * Based on Roots Bedrock

    When malicious bot scans website for URL that contains “?m=” parameter Slim SEO triggers PHP notice.

    For example, URL https://www.example.com/?a=login&c=index&dosubmit=1&m=admin will generate following notice:

    
    Notice: Trying to get property 'post_excerpt' of non-object in /xxx/plugins/slim-seo/src/MetaTags/Description.php on line 72 Notice: Trying to get property 'post_content' of non-object in /xxx/plugins/slim-seo/src/MetaTags/Description.php on line 72
    
    • This topic was modified 4 years, 5 months ago by Robert Kampas.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi @ironleg ,

    I’ve fixed it in the version 3.6.1. Please update and try again.

    The problem is that the plugin tries to generate meta description on a single page (probably the front page in this case), but it can’t get the post object. I’ve updated the code to add a check for this case. Please update and let me know how it goes.

    Thread Starter Robert Kampas

    (@ironleg)

    Can confirm it’s?fixed now. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP notice generated when GET request contains “m” parameter’ is closed to new replies.