WordPress.org

Ready to get started?Download WordPress

Forums

Google XML Sitemaps
Want to update via GET request but sm_key is blank (4 posts)

  1. HorNEAT
    Member
    Posted 1 year ago #

    Hi there,

    I want to update my sitemaps using get request through command line, but sm_key seems blank on my admin panel. Any ideas or help would be appreciated.

    Thank you.

    http://wordpress.org/extend/plugins/google-sitemap-generator/

  2. andrea.olivato
    Member
    Posted 1 year ago #

    I have the same exact problem, any help?

    WordPress 3.4.2
    Nginx webserver

  3. pwr-uk
    Member
    Posted 1 year ago #

    Yeah, this is a real pain - I thought it was just me. I've done some poking around and it seems that the "secret key" isn't being initialised when the plug-in is installed.

    I think you can force it to set it by clicking the "Reset Options" button at the bottom of the XML Sitemap Generator set-up page - but I'm too scared to try this as I spent ages tweaking at the other parameters and don't want to lose them.

    So I edited the plug-in source instead (using FileZilla or the Plugins Editor option) to set an arbitrary key value of 12345678...

    File:     .../wp-content/plugins/google-sitemap-generator/sitemap-core.php
    Function: CheckForManualBuild()
    After:    $this->Initate();
    Insert:   $this->SetOption("b_manual_key","12345678");

    Then regenerate using:

    mysite.url/?sm_command=build&sm_key=12345678

  4. HorNEAT
    Member
    Posted 1 year ago #

    Works like a charm!
    Thanks pwr-uk.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic