Closed (fixed)
Project:
XML sitemap
Version:
5.x-1.0
Component:
xmlsitemap_node
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2007 at 12:23 UTC
Updated:
27 Nov 2007 at 15:15 UTC
I don't think the fixes for the 1.x version have been implemented onto 2.x version.
Comments
Comment #1
darren ohThey definitely have. Please re-open if you have specific information.
Comment #2
Crimson commentedIf the fixes have been implemented, then it's still not working properly. I'm still getting intermittent links in the sitemap that are displayed as "node/#" instead of their path aliases made by Pathauto.
One thing though, a clean install of XML Sitemap does not create a perfect sitemap like what some people mention in the other similar issue.
I'm using the 11/01/07 version of XML Sitemap and Pathauto version 2.0-beta4.
Comment #3
darren ohDuplicate of issue 187451.
Comment #4
Crimson commentedMy tables are MyISAM. It's not the same problem.
Some of the links in the sitemap are showing as their pathauto aliases and some are not.
Comment #5
darren ohAs you can see in the other issue, the module works for sites with 10,000 - 30,000 nodes. How many does your site have? If you re-save one of the nodes, does it then appear under its alias?
Comment #6
Crimson commentedBut that's dev-1.x, I'm using dev-2.x. Anyways, you're probably a better judge of that.
I don't have as many, only ~200 for now. If I resave, it still doesn't use the url alias in the sitemap. It seems pretty systematic, the nodes that already have the correct url aliases won't switch to "node/#" if I resave and keeps its correct alias. And the nodes that don't work won't change to their correct url aliases no matter what I do.
And like I've said before, I've uninstalled the module many times and reinstalled it just as many, and the sitemap always comes out the same, the same exact nodes have the right aliases and the same exact nodes have the wrong aliases.
Comment #7
darren ohI wrote the code for both only recently. The queries are identical. Sounds like a module weight problem. Figure out which modules are changing the URL aliases, then install Module Weight and give XML Sitemap a heavier weight than those modules.
Comment #8
darren ohComment #9
Crimson commentedI'll try out Module Weight. And I think only Pathauto's changing my URL aliases.
Comment #10
blb commentedI'm having the same problem with a very simple site - few nodes.
changing the weight doesn't work. reinstalling doesn't work. (i've tried the dev 2 branch and the 5.x-1.0 release)
strangely, the xmlsitemap_node table is empty, but the sitemap does get generated - only with node/xx URLs.
Comment #11
Crimson commentedOh wow. I just checked the xmlsitemap_node table and I see a big problem. *still haven't tried Module Weigh yet though*
Here's an except from the table:
Is it me or are some of those entries backwards? And the one that have the right correct entries are the one that are showing up with the right alias in the sitemap.
Oh yeah. I also get this error in the watchdog A LOT (like every minute). It might be related.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE uid = 304' at line 3 query: UPDATE xmlsitemap_user SET pid = 1602, last_changed = 1194814768, previously_changed = last_changed, priority_override = WHERE uid = 304 in /home/name/public_html/includes/database.mysql.inc on line 163.My setup is MySQL 5.x and PHP 5.x.
Comment #12
darren ohFixed in CVS commit 87678.
Comment #13
darren ohComment #14
Crimson commentedI seem to be getting a different kind of error intermittently now.
I don't get "values in the wrong order" but it looks kind of like the same error so I'll post it here.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM node n LEFT JOIN url_alias ua ON ua.src = CONCAT('node/', 401) ' at line 3 query: INSERT INTO xmlsitemap_node (nid, pid, last_changed, priority_override) SELECT 401, ua.pid, 1194925942, FROM node n LEFT JOIN url_alias ua ON ua.src = CONCAT('node/', 401) LIMIT 0, 1 in /home/name/public_html/includes/database.mysql.inc on line 163.I can post another issue for this if you want.
Comment #15
darren ohSimilar errors are reported in issue 191723.
Comment #16
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.