Closed (fixed)
Project:
XML sitemap
Version:
5.x-1.6
Component:
Other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2009 at 15:53 UTC
Updated:
17 Nov 2009 at 10:00 UTC
Jump to comment: Most recent
Comments
Comment #1
avpadernoThe URLs used for the links shown in the sitemap are returned from Drupal; are you sure your Drupal site is correctly configured?
Comment #2
Expier commentedHow can I check this? The site works right. All links are working...
I have an idea what could be the reason: I am submitting sitemap every time cron runs. My cron is configured through ISP control pannel. To run cron I had add follwing lines to cron.php file:
$_SERVER['HTTP_HOST'] = 'www.[my_site].com';
$_SERVER['REMOTE_ADDR'] = '[server_ip]';
$_SERVER['REQUEST_METHOD'] = 'GET';
chdir('/home/[my_folder]/data/www/[my_site].com');
But why does errors occures even when I am running cron manually through browser (just going to www.[my_site].com/sitemap.xml)?
Comment #3
avpadernoI guess there could be some conflicts with what you set, and the following code executed by Drupal at bootstrap:
The effect of seeing the directory path in the URL could be caused by changing the current directory.
Comment #4
Anonymous (not verified) commentedWhat happens if you remove your modifications to cron.php? Setting to support request since you've modified the Drupal core source.
Comment #5
avpadernoWhat is the
$base_urlvalue you have in your settings.php?Comment #6
Expier commentedI had removed modifications but sitemap did not become right. It becomes right only after module enabling/disabling
Comment #7
Expier commentedI have no $base_url, it was not set for my site.... Actually I can't chek could it be fix for this issue because I am using poormanscron now... I was trying to repeat this bug, but have no results
Comment #8
Anonymous (not verified) commentedAre you saying the ``bug'', i.e. results, you were experiencing no long exist?
Comment #9
Expier commentedCall it bug, call it issue, what ever you calling it the situation is the same. I was trying to replicate it but it was failed. I could not do it every time just for telling you: "Yes, THI IS THE BUG", no I will not do it. I just need my cron running and I have it with poormanscorn and I just need my sitemap working and I have it too.
I just trying to help guys who are maintaining this project by reporting to them of this issue... If that was not helpful so dont mind - close it.
Comment #10
avpadernoEvery issue report is welcome, and it is weighted as it should. Without users reporting issues they are having, developers could not know of problems present in the code they develop (also because they cannot check the interactions with their module and all the plethora of existing modules).
The remark made by earnie is to point out that maybe is not a XML sitemap bug.
Basing on what you said (your site didn't have a
$base_urlset), the problem is caused by the custom code you had to use to set your cron task. In fact, when$base_urlis not set, Drupal executes the following code:If you don't want to see wrong URLs, and use the custom code you need to enable the cron tasks, try setting
$base_url.Comment #11
avpadernoDo you mean that now the URLs shown in the sitemap are correct as you expect them to be?
Comment #12
Anonymous (not verified) commentedThis module is used by thousands of users, http://drupal.org/project/usage/xmlsitemap, and is why I have a problem calling this a bug. I'm trying to understand why you are having an issue with your reported URLs and no one else is. Except for what Kiam has pointed you to I know of no other fix. Modify your settings.php file to add the $base_url; do you then have good results? (see http://api.drupal.org/api/function/conf_init/5)
The other question would be what modules do you have installed? Maybe another module is interfering with the results of xmlsitemap.
Comment #13
Expier commentedLook what I had done:
- I remove modifications to cron.php I have made before.
- I disable/enable XML Sitemap module
- Check sitemap.xml - it has no errors.
Than Kiam told me to set $base_url in settings.php and I do following:
- Restore modifications made to cron.php
- Run for a few times cron
- Check my sitemap (I want to see, that the error I had before again is replicated, before doing changes to settings.php) - and I had not seen wrong urls i.e. urls was right.
So now I am not using midified cron.php (I am using poormanscron which is running well without modifications) and I could not leave cron running with modifications for some time becuse it is my live server.
I will try to have backups of my site and dump of db for time the error was and if I could have it I will try to check if $base_url fix this.
Comment #14
avpadernoActually, version 5.x-1.6 of XML sitemap uses a custom function to get the URL of a Drupal link, and it could be that function needs to be updated. In the specific case, anyway, I think the problem is primarily caused by the modifies made to cron.php (and the fact that
$base_urlis not set in settings.php).We can then say that the problem is specific to the particular configuration, and the issue is not caused by XML sitemap.
Comment #15
murokoma commentedHi there,
I'm having the same problem here on two installation on the same server, using the 1.1 stable version.
In google webmaster tools, it get messages below. To Infom you: my site would be on www.maciejewski.ch and my sitemap is on www.maciejewski.ch/sitemap.xml;
Physically, the server path to www.maciejewski.ch IS http://web892.login-24.hoststar.ch/maciejewski/, so I assume the plugin somehow pulls the server path instead of the real drupal path.
I would appreciate any help, thanks! I'll gladly provide more information.
Robert
(putting this back to active with more information).
***********
Fehler 7
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/
Problem ermittelt am: 01.11.2009
Fehler 61
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/great-new-collabo...
Problem ermittelt am: 01.11.2009
Fehler 73
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/little-update-twi...
Problem ermittelt am: 01.11.2009
Fehler 163
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/jaw-dropping-russ...
Problem ermittelt am: 01.11.2009
Fehler 481
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/another-really-up...
Problem ermittelt am: 01.11.2009
Fehler 487
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/doing-seminar-kmu...
Problem ermittelt am: 01.11.2009
Fehler 505
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/its-twitter-time
Problem ermittelt am: 01.11.2009
Fehler 541
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/amazing-dancer-mu...
Problem ermittelt am: 01.11.2009
Fehler 559
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/and-your-money-go...
Problem ermittelt am: 01.11.2009
Fehler 571
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/8-us-firms-have-a...
Problem ermittelt am: 01.11.2009
Fehler 655
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/quick-addition-ye...
Problem ermittelt am: 01.11.2009
Fehler 679
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/must-see-very-int...
Problem ermittelt am: 01.11.2009
Fehler 697
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/about-great-cab-r...
Problem ermittelt am: 01.11.2009
Fehler 715
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/another-proof-its...
Problem ermittelt am: 01.11.2009
Fehler 721
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/ha-thats-just-inc...
Problem ermittelt am: 01.11.2009
Fehler 727
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/horrible-marketin...
Problem ermittelt am: 01.11.2009
Fehler 733
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/quote-week-0
Problem ermittelt am: 01.11.2009
Fehler 739
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/google-drives-me-...
Problem ermittelt am: 01.11.2009
Fehler 745
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/quote-week
Problem ermittelt am: 01.11.2009
Fehler 751
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/its-just-so-good-...
Problem ermittelt am: 01.11.2009
Fehler 757
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/making-it-easier-...
Problem ermittelt am: 01.11.2009
Fehler 769
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/lorem-ipsum-gener...
Problem ermittelt am: 01.11.2009
Fehler 793
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogs/good-nuuz-all-ze-no...
Problem ermittelt am: 01.11.2009
Fehler 799
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogs/gratuliere-guido
Problem ermittelt am: 01.11.2009
Fehler 835
URL nicht zulässig
Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig.
URL: http://web892.login-24.hoststar.ch/maciejewski/blogsen/nice-story-about-...
Problem ermittelt am: 01.11.2009
Comment #16
murokoma commentedAh well, and as it's german; "fehler" is error, the number after that is the sitemap line; it says "URL no valid" (URL nicht zulässig), and "This URL is not valid at this posistion for a XML-Sitemap" (Diese URL ist für eine XML-Sitemap an dieser Position nicht zulässig).
Comment #17
murokoma commentedOh damn it, I just saw that this was issued for 5.16 - I am using D6 1.1; what shall I do to show the correct version issue? I don't want to mess around with the versioning of this post....
Comment #18
avpadernoOpen a new issue for the problem you are having.
I am marking this report as fixed because the OP has never replied to my previous comment.