Support » Plugin: Google XML Sitemap Generator » Undefined Property Error

  • I was getting this error.

    PHP Unknown: [8] Undefined property: stdClass::$exclude in /var/www/**/public_html/wp-content/plugins/www-xml-sitemap-generator-org/code/sitemapBuilder.php on line 309

    It appears $result does not contain “exclude” in all cases.
    I don’t want authors included at all, so I have added in a return on the first line of the function, but it looks like it could be fixed with an isset on $result->exclude.

    Note there is also a typo in $exclude in the function.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author XmlSitemapGenerator


    Thanks for the heads up.
    You should be able to exclude authors from the main admin settings page.
    Authors should have an $exclude so I think there is something amiss here.
    I’ll investigate and get back to you.
    PS Apologies in advance as I’m away at the minute so may be a little slower to respond than normal.

    Plugin Author XmlSitemapGenerator


    So the issue is that authors are set globally. You can exclude/include all using the main settings. The function is amusing they are also set individually. I’m looking in to per author settings as a way to solve this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined Property Error’ is closed to new replies.