Support » Plugin: XML Sitemap & Google News » PHP Notices

  • Resolved Igor Yavych

    (@flyerua)


    Hello!
    I’m not sure what was your made you comment out line 812 in includes/class-xmlsitemapfeed.php, but that produces

    [24-May-2018 04:27:12 UTC] PHP Notice:  Undefined variable: attachment in /some_path/wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed.php on line 818
    [24-May-2018 04:27:12 UTC] PHP Notice:  Trying to get property of non-object in /some_path/wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed.php on line 818
    [24-May-2018 04:27:12 UTC] PHP Notice:  Undefined variable: attachment in /some_path/wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed.php on line 819
    [24-May-2018 04:27:12 UTC] PHP Notice:  Trying to get property of non-object in /some_path/wp-content/plugins/xml-sitemap-feed/includes/class-xmlsitemapfeed.php on line 819

    since $attachment is quite obviously not an object because you commented out code to retrieve it. Please fix it so that I don’t have to with every update. Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author RavanH

    (@ravanh)

    Hi Igor, that line should indeed not have been commented out. Thanks for reporting!

    It will be fixed in the next release…

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notices’ is closed to new replies.