You are here:  » Problems with sitemap


Problems with sitemap

Submitted by nanaz on Mon, 2022-04-11 10:33 in

Hi David,

Hope you're okay! So very sorry to see the plugin won't be maintained but I hope I can still bother you with a question about it.

I have seen a drop in indexed urls on my site lately, and I just found out it has probably to do with this: pto_sitemap produces an xml with all the feeds, but all XML's in it give a Wordpress critical error page.

https://www.example.com/shopping?pto_sitemap=xml

XML Example:
https://www.example.com/?pto_sitemap=xml&pto_filename=albelli.xml

This Error page doesn't give a clue on what could be the problem (with all DEBUG's in wp-config on). In the standalone version of the site, the sitemap is created without problems.

I turned off the plugins, but still no go.

Do you have any idea what could be happening? Thank you!

With kind regards,

Marlies

Submitted by support on Mon, 2022-04-11 10:48

Hi Marlies,

To correct this in this instance edit pto_sitemap.php and look for the following code at line 48:

    $sitemapBaseHREF = get_bloginfo('url')."/";

...and REPLACE with:

    $sitemapBaseHREF = get_bloginfo('url')."/".$pto_config_permalink;

Cheers,
David.
--
PriceTapestry.com

Submitted by nanaz on Mon, 2022-04-11 11:01

Hi David,

Sorry to say it's still the same error, except now the created XML's have a double //

Cheers,
Marlies

Submitted by nanaz on Mon, 2022-04-11 11:12

Hi David,

I got brave and just uploaded a newer 2017 version of the sitemap, and now it's working! Could have tried this sooner, but I was thinking in Wordpress issues.

Cheers,
Marlies