Local sitemap

#154538
  • Hello, is there any way to remove /local-sitemap.xml ? inside that sitemap is /locations.kml url, and it is a blank white page when i open it.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Please make sure you have added geo-coordinates by navigating to WordPress Dashboard > Rank Math > Titles & Meta > Local SEO. Please refer to this guide from Google on how to find your business location’s geocoordinates.

    However, We have been able to replicate the blank sitemap issue and we will be releasing an update with a fix soon.

    For now, please edit the includes/modules/local-seo/class-kml-file.php file from WP > Plugins > Editor and got to line 31:

    Replace this code:
    $this->filter( 'rank_math/sitemap/locations/data', 'add_location_data' );

    With this:

    if ( ! Helper::get_settings( 'titles.use_multiple_locations', false ) ) {
    	 return;
    }
    $this->filter( 'rank_math/sitemap/locations/data', 'add_location_data' );

    Then, go to WordPress Dashboard > Rank Math > Titles & Meta > Local SEO and hit the save button.

    That will fix the issue and you will be able to see the Locations.KML file correctly.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thanks for fast reply, I tried to replace but couldn’t find lines you provided in includes/modules/local-seo/class-kml-file.php directory, it looks like this.
    /**
    * The Constructor.
    */
    public function __construct() {
    $this->action( ‘init’, ‘init’, 1 );
    $this->filter( ‘rank_math/sitemap/index’, ‘add_local_sitemap’ );
    $this->filter( ‘rank_math/sitemap/local/content’, ‘local_sitemap_content’ );
    $this->filter( ‘rank_math/sitemap/locations/content’, ‘kml_file_content’ );
    $this->action( ‘cmb2_save_options-page_fields_rank-math-options-titles_options’, ‘update_sitemap’, 25, 2 );
    }

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Sorry Anas, but requesting FTP access does not make sense. You have to get your scripts and your support right. The lines in includes/modules/local-seo/class-kml-file.php look exactly as Фероз Хамиди described.

    Aren’t you working with the latest version of your plugin? How can it happen you let a user search for lines that are not in the current version?

    I have this exact same issue which was picked up as a 404 by Google Search Console.

    Why is this showing in the sitemap?

    /local-sitemap.xml
    – /locations.kml

    I haven’t changed anything on my site settings or Rankmath settings for weeks, and now it’s appeared.

    This is clearly a bug from the latest Rank Math update.

    Hello,

    We are sorry about the issue. The file is present in the PRO version and not the free version as the OP is likely using.

    The KML file in the free version has to be enabled using a filter. OP, if you added the filter in your theme’s functions.php file – please remove that to get rid of the Locations.KML file.

    For the PRO version, this feature was added just a week ago and we have made multiple improvements internally. The KML file is automatically created when Geo-coordinates are present at WordPress Dashboard > Rank Math > Titles & Meta > Local SEO.

    Not offering an option to disable the Sitemap with a UI option was an oversight and we really apologize for that. We are going to be fixing all these issues in an upcoming version and we would really appreciate your patience in the meantime.

    Thank you.

    You say “…The KML file is automatically created when Geo-coordinates are present at WordPress Dashboard > Rank Math > Titles & Meta > Local SEO.”

    I do not have Geo-coordinates entered, so your statement cannot be correct. This is a bug, which I hope will be fixed in the next update.

    Hello @simonjones1

    We do apologize for this inconvenience.

    This fix should be available in the next update of Rank Math. You can keep track of our latest update in our changelog page or make sure your auto-updates are enabled.

    Meanwhile, if you have any other questions, please don’t hesitate to ask or create a new ticket. We will be more than happy to help you with that.

    Thank you

    Google has now found this a problem with my website.
    Can you give me a date as to when this will bug be addressed?

    Time is of the essence.

    Thank you,
    Shaun

    Hello,

    @Shaun I’m afraid to say that we don’t have an exact ETA of when this will be implemented, but our dev team is already working on it.

    However, we will let you know once the update for a fix is already available. You can also keep an eye on our changelog: https://rankmath.com/changelog/, and we will be mentioning this when we release an update to fix this issue for all users.

    We really appreciate your patience in this matter.

    In the meantime, please don’t hesitate to contact us anytime by creating a new ticket to assist you further with anything else.

    Thank you.

    Thank you for your reply.

    Hello,

    If you need further help or with anything else, please open a new support ticket here so we can help:

    https://support.rankmath.com

    We are always here for assistance.

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

The ticket ‘Local sitemap’ is closed to new replies.