Call to a member function getUrl() on a non-object

Wodpress Plugin: google-sitemap-generator
Version: Version 3.2.4
Fatal error: Call to a member function getUrl() on a non-object in /home/???/public_html/wp-content/plugins/google-sitemap-generator/sitemap-ui.php on line 910

Thinking that this is a conflict with another wordpress plugin.
Going through trial and error deactivating other plugins.

  • Facebook
  • TwitThis
  • StumbleUpon
  • Digg
  • del.icio.us

,

4 Responses to “Call to a member function getUrl() on a non-object”

  1. search engine optimization on October 23rd, 2013 at 10:22 pm

    Thinking that this is a conflict with another wordpress plugin.
    Going through trial and error deactivating other plugins.

  2. search engine optimization on October 23rd, 2013 at 10:23 pm

    Deactivating other installed plugins did not work.

    • Deactivated the google-sitemap-generator plugin, but it did not clean up the options table. Left a mess!
    • sm_options was the main offender, but I want to delete all keys
    • So searched for the “sm_%” keys in the wp_options table.
    • Deleted these keys
    • Re-activated the plugin

    Plugin options were probably corrupted when cloning wp blog.

  3. search engine optimization on October 23rd, 2013 at 10:35 pm

    Solved.
    What a nightmare for my cloned sites.
    Lesson for plugin designers is to clean up the options table when deactivating plugins.
    We are running old code, so the newer versions of this plugin may have addressed this.
    Or may not…

  4. search engine optimization on October 23rd, 2013 at 10:36 pm

    We lost all of our setting for this plugin, so we have to restore settings from a similar site.
    Be careful…