Title: Undefined variable error
Last modified: September 7, 2018

---

# Undefined variable error

 *  Resolved [Summer](https://wordpress.org/support/users/fpmsummer/)
 * (@fpmsummer)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-error-15/)
 * I did some digging, and I found references to the “Undefined variable” error 
   that crops up for sitemaps.classes.php on line 1075.
 * Here’s the weird thing… I have a handful of sites, all running v3.06, and this
   error pops up on only one of them… all the others don’t have this error.
 * I even added the filter you suggested on Github, but it has no effect.
 * What should I look for, is there another workaround for this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-error-15%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-error-15/#post-10665601)
 * Hello again 🙂
 * This issue has been found a while back and is fixed for the next release:
    [https://github.com/sybrew/the-seo-framework/issues/330](https://github.com/sybrew/the-seo-framework/issues/330)
 * The workaround posted there was meant for a bug in 3.0.5 and below. I got a bit
   confused as the filter was mentioned.
 * Please note that WP_DEBUG shouldn’t be enabled on production websites; it’s meant
   to find issues only. It can even expose sensitive information when you get unlucky.
 *  Thread Starter [Summer](https://wordpress.org/support/users/fpmsummer/)
 * (@fpmsummer)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-error-15/#post-10675964)
 * Cool. I really like this plugin, and I love that you added a filter to increase
   the number of pages to index.
 * I can’t tell you how many errors on Google I’d been getting on the new Search
   Console for “coverage issues” for indexing pages that were noindex, because the
   Google XML Sitemaps plugin does not recognize posts that are set to noindex using
   SEO Framework. But now that I can adjust the index limit in your plugin, I don’t
   have to use the other plugin anymore.
 * Thank you!
 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-error-15/#post-10676713)
 * I’m glad you find the filter useful 🙂 This weekend you’ll get an option to change
   the limit, too. For your convenience, I suggest removing the filter after updating
   and use the option instead.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Undefined variable error’ is closed to new replies.

 * ![](https://ps.w.org/autodescription/assets/icon.svg?rev=3000376)
 * [The SEO Framework – Fast, Automated, Effortless.](https://wordpress.org/plugins/autodescription/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autodescription/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autodescription/)
 * [Active Topics](https://wordpress.org/support/plugin/autodescription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autodescription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autodescription/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-error-15/#post-10676713)
 * Status: resolved