Closed (fixed)
Project:
XML sitemap
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
24 Feb 2010 at 13:56 UTC
Updated:
19 Mar 2010 at 14:20 UTC
Jump to comment: Most recent file
When generating xmlsitemap, an endless loop happens.
Entries are added and removed from table constantly.
I am running PostgreSQL, not MySQL.
Drupal is installed with latest dev code.
I suspect some code not compliant with guidelines: http://drupal.org/node/555514
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | infinite-loop.png | 16.16 KB | grub3 |
| endless-loop.png | 28.25 KB | grub3 |
Comments
Comment #1
dave reidDo you have any more specifics about why its happening? My development machine experience a hard drive failure so I won't be able to get my environment up until at least tomorrow.
Comment #2
dave reidComment #3
grub3 commentedNo, I upgraded using latest Drupal version and the problem is still on.
This is a grave stopping bug for me.
This could be a MySQLism.
You may have a look at my guide:
Writing code compliant with both MySQL and PostgreSQL
http://drupal.org/node/555514
I assigned the bug to myself but would appreciate XMLsitemap team reading my guide.
Maybe the fix is obvious and this will help you find a fix.
Comment #4
grub3 commentedSetting back to active as I am working on this bug.
It seems that entries are added and deleted constantly.
There seems to be a problem in XMLsitemap design.
Will enquire.
Comment #5
dave reidUntil you can point out what's specifically going wrong, I can't help you. I know how to write cross-db compatible code so its not and run all my SQL through the SQL-99 validators.
Comment #6
grub3 commentedI assume this is a cross-db problem because all my websites and client websites are running under PostgreSQL and we all have this issue. When running the rebuild query, I connect to PostgreSQL and I see the table grow and shrink indefinitely. There could be a problem on count somewhere so that there is no end to the loop.
Do you need access to my site? If you provide me a fixed IP, I can open access.
Comment #7
grub3 commentedOne site has 8 pages.
5 pages are part of the XML site map.
It stops on first page and increments the counter endless.
Comment #8
dave reidFinally got postgresql installed back after the hard drive crash and I can duplicate this. I'm on it. :)
Comment #9
dave reidOk got this fixed! :)
http://drupal.org/cvs?commit=337308
http://drupal.org/cvs?commit=337310
Comment #10
grub3 commentedThank you very much Dave.
I tried to test, but it seems that the file was not committed to CVS:
http://drupalcode.org/viewvc/drupal/contributions/modules/xmlsitemap/xml...
Reopening so you can see the issue and commit the file.
Comment #11
grub3 commentedComment #12
dave reidWow. Ok I fixed that horribly broken-committed file. Sorry about that!