Module used: xmlsitemap-6.x-2.0-beta2.tar

I have installed this module. When I go to edit the xml, I am getting the attached screen shot error.

Anyone, please help?

Note: It is a multisite drupal installation. Module is installed in sites/all/modules

CommentFileSizeAuthor
#5 site.JPG45.47 KBkumarangopi
xml.JPG32.83 KBkumarangopi

Comments

Anonymous’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)
kumarangopi’s picture

Earnie:

Thanks for the reply. But I am not able to understand about the post in that link. Can you kindly elaborate on what might be the issue?

Anonymous’s picture

Sure, you're operating in a Windows environment and the issue I pointed to is a Windows only issue. The issue points out that on a Windows environment the files directory isn't correctly found and leads to errors relating to generating and viewing /sitemap.xml.

kumarangopi’s picture

Earnie:

Webserver is located in Linux server. Did you thought that it is windows environment?

kumarangopi’s picture

StatusFileSize
new45.47 KB

Earnie:

Attached is screenshot which I am getting in the browser. I edited page, product content types and made xmlsitemap included. I can see indexed links in xmlsitemap settings. But when I click the sitemap url, the attached screenshot is coming.Any thoughts?

Thanks

dave reid’s picture

This sounds like there is a module that has an empty line before its opening PHP tag, which is causing invalid XML output since XML cannot start with an empty line.

Anonymous’s picture

I agree with Dave and was about to post the exact same message.

kumarangopi’s picture

Earnie and Dave:

Should I remove the empty line before PHP tags? Can you please confirm me the File in which I have to make the changes?

Thanks

kumarangopi’s picture

Earnie and Dave:

I have enabled "Developer" mode and here is my output for /sitemap.xml?debug

Current context: Array ( [language] => en )
Sitemap: stdClass Object ( [smid] => g3XYqcXbSKPVBDODwnT6pq7oqhCFkPryj4vVqrl_Kfc [context] => Array ( [language] => en ) [updated] => 1302003230 [links] => 10 [chunks] => 1 [max_filesize] => 1401 [uri] => Array ( [path] => sitemap.xml [options] => Array ( [language] => stdClass Object ( [language] => en [name] => English [native] => English [direction] => 0 [enabled] => 1 [plurals] => 0 [formula] => [domain] => [prefix] => [weight] => 0 [javascript] => ) [absolute] => 1 [base_url] => http://www.send-a-press-release.com ) ) )
Chunk: 1
Cache file location: sites/send-a-press-release.com/files/xmlsitemap/g3XYqcXbSKPVBDODwnT6pq7oqhCFkPryj4vVqrl_Kfc/1.xml
Cache file exists: Yes

****
Anything works?

Anonymous’s picture

Can you please confirm me the File in which I have to make the changes?

You've installed some other module that has a blank line in one or more of its files prior to the <?php tag. You will have to look through your active modules and find the culprit. Another method is to start disabling modules to determine which one is adding the blank line. Once you find the module the fix is easy by removing the blank line. You'll want to file an issue with the module about the invalid blank line.

kumarangopi’s picture

Earnie:

The crazy part is that http://www.send-a-press-release.com/sitemap.xml is working well in IE. Content encoding error in Mozilla and blank screen in Chrome.

Will empty space prior to <?php tag will be the reason?

Anonymous’s picture

Category: support » bug
Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Active

The .xsl file has the blank line at the top of the file. See http://www.send-a-press-release.com/sitemap.xsl and view source to see the blank line. Remove the blank line in the sitemap.xsl file.

dave reid’s picture

That's also generated by the module, so it would still be a errant Drupal module with a blank line before a PHP tag at fault.

Anonymous’s picture

Appears to be jquery.tablesorter.min.js in the modules/xmlsitemap/xsl directory.

kumarangopi’s picture

Dave:

Sorry I don't understand "errant Drupal module"?

you mean I need to go to each module and check blank line before <?php tag?

dave reid’s picture

@earnie: JS doesn't affect the PHP output, so that's not the problem. It has to be a PHP file.

@kumarangopi: Basically, yes.

kumarangopi’s picture

Dave:

I am going to submit the sitemap.xml so I will leave this Mozilla content coding issue for a while.

Thanks to both of you