Just uninstalled and removed old xmlsitemap files.

Installed beta2 of the 6x branch. no xmlsitemap folder created in files directory, and sitemap.xml is not being populated.
Have cleared caches and ran cron many times. Including update.php

Comments

avpaderno’s picture

Title: 6.x-1.0-beta2 Not populating XML » 6.x-1.0-beta2 doesn't populate the sitemap
avpaderno’s picture

Status: Active » Postponed (maintainer needs more info)

Are the cache files created?

konsumer’s picture

I also have the same issue.

The dir xmlsitemap is created, but no cache files. I am generating from menu (which has several items in it) and forums. I deleted sitemap cache, flushed site caches, and tried changing the cache dir to "files/sitemap"

The sitemap generated looks like this (empty):

<?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">
</urlset>
konsumer’s picture

Component: Other » Code
Status: Postponed (maintainer needs more info) » Active

Also, I ran cron and update.

triversedesigns’s picture

No cache files were created. Tried setting 777 permissions on all parent folders of xmlsitemap, but since the latest update, even that folder has not been created.

Im only getting

<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9">
</urlset>

coming up in the sitemap.xml file

abx’s picture

Same problem here. Sitemap.xml contain just information below :

<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9"></urlset>
eyecon-1’s picture

Same here.

triversedesigns’s picture

We demand immediate attention maintainers! haha but in all seriousness I think it wont be long until all the bugs are ironed out and we see a full release! Then Id say its only Panels I think that needs to be completed for D6!

avpaderno’s picture

I am able to create a sitemap in a test site with 20000 nodes, 5000 taxonomy terms, and 5000 users.
All I did was to visit the tools page to execute the Delete the sitemap cache files operation, then execute cron.php.

Because the high number of links being generated, the sitemap doesn't actually contain all the links, but they are already 5000 links.

avpaderno’s picture

Title: 6.x-1.0-beta2 doesn't populate the sitemap » The sitemap doesn't get populated

I noticed that the beta2 version didn't contain the correct revision of the files; I fixed this by creating a beta3 that now contains the correct file revisions.

I am changing the title to not include the referring version; differently, the title should be changed all times the referring version is updated. There is not need to put in the title informations that are available in other metadata (the form fields that appear before the comment field).

abx’s picture

I just upgraded to Beta 3, then, Delete the sitemap cache files operation, then execute cron.php That didn't help. Sitemap still shows only a single line which is

<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9"></urlset>
shiroitatsu’s picture

Version: 6.x-1.0-beta2 » 6.x-1.0-beta3

Same as above.

Anonymous’s picture

Priority: Normal » Critical
Message	fopen(sites/4offer/files/xmlsitemap/xsm-b9f08d2d-en.xml) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in E:\devshop\www\4offer\htdocs\sites\all\modules\xmlsitemap\xmlsitemap\xmlsitemap.pages.inc on line 87.

$ ls -l ../../4offer/files/xmlsitemap/
total 7
-rw-r--r-- 1 boyde Administrators 3084 May 12 10:46 xsm-5b20a35c.xml
-rw-r--r-- 1 boyde Administrators 3026 May 13 08:59 xsm-Array.xml

EDIT: It appears an array was concatenated to the string.

avpaderno’s picture

Actually there are two errors.
The fopen() call at line 87 is only done to verify that the call to file_transfer() could be successful; it should not then throw any warning, as it is known that it could fail.
The second error is how the filename is built.

EDIT: you should have said which version caused that error; for a moment I thought that code was present in the beta3, which is not true.

EDIT: I fixed the second error; the first error has been suppressed with the @ operator, as the call to fopen() is done well knowing it can fail.

avpaderno’s picture

Status: Active » Closed (duplicate)

I am setting this report as duplicate of #458546: Cache files are not created because who opened the report clearly stated that the cache files weren't created (no xmlsitemap folder created in files directory).

So far, the only reason the sitemap appears empty is that the cache files have not been created.

scott859’s picture

I am ahving the same as problem as the above posts:

Upgraded to Beta 3, deleted the sitemap cache files (via tools), then executed cron.php The sitemap shows only a single line which is

<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9"></urlset>

mediamike’s picture

Having same problem.