rainlab/sitemap-plugin

sitemap.xml is empty?

Closed this issue · 8 comments

I added some data for sitemap. but the sitemap content is empty of http://domain/sitemap.xml

That page content displayed without I added data, like this:

<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"/>

How can I fix this problem?

Same problem here !

@daftspunk We need help.

Need some more info please, the sitemap plugin works for me. How can I replicate this issue?

Hi @daftspunk

I don't know why this happened, it working in a new installation version of OctoberCMS, just don't work in my existing instance.

That details please refer to the attached pictures.

I was added some data on the sitemap page and save it, there are not displayed on the frontend page. but they can displayed on backend sitemap pages. as shown in pictures below.

I'm sure I don't have to modify any core files.

20150707144512

20150707144408

If you view the source of that URL does it show anything different? Sometimes the preview doesn't show everything.

Does it happen on a clean install?

@daftspunk The source page is also not show those contents.

I guess that plugin is not incomplete, this problem does not occur when I used a new OctoberCMS.

Is there any way to reinstall that plugin of sitemap on my existing instance? I have a lot of data in that instance, so if I use a new OctoberCMS then need to transfer a lot of data.

OK, I found that solution, I made reference to #14 and modify the route.php of sitemap plugin, that sitemap page can display those contents.

Why this fix has not been updated through system updates? This issue should be common when installed multiple themes.

Should be well and truly available by now 😄