xml-sitemap error, make sure the file exists and is writable

by Sai on December 18, 2008

If you got the above message when trying to implement the XML sitemap, then you have the solution here.

I’m not touching the plugin installation part here as it is very well described by the plugin owner arne brachhold.

‘Make sure the file exists and is writable’.If we go by the sentence, we clearly understand that some file is missing.You may think of downloading the plugin again but it wont solve your problem.

When the plugin creates a sitemap,it should have some file to write it on right?To provide the plugin the file it needs just use your FTP.

Open your FTP and create a new file on the server side in the root directory and name it as sitemap.xml.Create another file similarly and name it as sitemap.xml.gz which will be created in zipped format.

Some FTP’s like filezilla may not have the option of making a new folder on server side.In such cases simply open your notepad on your desktop and make an empty file and name it as sitemap.xml.Similarly  make an empty file and name it as sitemap.xml.gz.Then transfer them to your server using the FTP into the root directory(public_html).Make sure they are writable.You can find how to make file writable here.

After you’ve done that come back to settings and click on XML-sitemap.You will again see two red coloured lines in the beginning but hold your patience and click on build your sitemap manually.

There you go,your sitemap has been successfully built,wasn’t it? .

If your problem wasn’t solved even after this then do not hesitate to put a comment below.

Visitors who read this article also read:

  1. Sitemap.xml error URL timeout:robots.txt timeoutI recently came across this error when I logged onto my webmaster tools.I searched the web to find out the...
  2. Make php and css files writable from within wordpressIf your using wordpress machine for your website or blog,you may sometimes be required to make certain changes or add...
  3. Fatal error:call to undefined function wp_get_current_user(); in line 920You probably might have got the above error and hence are here.Ok lets see what to do now. I uploaded...
  4. error : /tmp directory fullWarning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in...
  5. Ovi Store App login errorYesterday was a strange day for me with my Nokia device. There’s not a single day till yesterday that I...
  6. MTV Roadies Raghu fact fileAny one who claims to be the youth of India need no introduction to Raghu Ram aka MTV Roadies Raghu....

{ 13 comments… read them below or add one }

Ella

Does the plugin work if they are not writable?

joseph

Thank you…
you have a great solution to the problem..
awesome..

Chris

I followed your instructions and it worked! Thanks! One of the things that I missed while reading other peoples solutions was I never clicked on rebuild sitemap manually. Once I did that, I found everything to be working fine now.

suresh

i made all changes. created new two file as you said. i made them writable. but i still got this two warnings
There was a problem writing your sitemap file. Make sure the file exists and is writable. Learn more
There was a problem writing your zipped sitemap file. Make sure the file exists and is writable. Learn more

i tried more and more
i tried every solution. but coulnd handle it

Sriraj

Are you sure you put those files in the root directory? If your blog is installed in a sub directory, then you should put these files in the root of that sub directory instead.

tiny...

Thanks, worked for me with one change to your instructions,
“Open your FTP and create a new folder on the server side”
In my case I created “files” and not folders as suggested.

sriraj

Yeh, that should have been a ‘file’ and not a ‘folder’. Too lazy to correct that now.

Rethnaraj Rambabu

And another thing, when I tried open

http://www.karambakkudi.com/sitemap.xml

it shows like this

XML Parsing Error: no element found
Location: http://www.karambakkudi.com/sitemap.xml
Line Number 1, Column 1:

sriraj

I don’t see that error when I open your sitemap. Infact I don’t see anything.
Did you upload 2 empty files with names sitemap.xml and sitemap.xml.gz to your root directory? (public_html /sitemap.xml) .
Pfff, I visited your site now and found that your language is Tamil (I guess?) and your URL’s too are in un-known language. I guess that was the parsing issue.

Rethnaraj Rambabu

Hi, Mr.Sriraj,

I’m raj from Malaysia. I tried your way. But, i still can’t solve that problem. It is still showing the same thing. Please help me.

Thanks.

Oshimai

Thanks for the nice and clear instructions. Your post helped me resolve my issue.

levent

i made all changes. created new two file as you said. i made them writable. but i still got this two warnings
There was a problem writing your sitemap file. Make sure the file exists and is writable. Learn more
There was a problem writing your zipped sitemap file. Make sure the file exists and is writable. Learn more

i tried more and more
i tried every solution. but coulnd handle it

wp 2.7 with quadro theme

sriraj

Did you try ‘rebuild manually’ function after you made those changes?

Leave a Comment

Please tell us what YOU think. Copied comments will not be published. Any link to third party websites inside the comment box will either be edited or removed.

{ 1 trackback }

Copyright © 2008-11.Sai Digital Magazine.