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

by Sriraj 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. Google version of explaining robots.txt timeout sitemap errorIn one of my previous posts I described what could be the cause for the above problem. Now Google has...
  2. 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...
  3. How to construct an XML site map for your mobile websiteSeeing the reports of Admob, a mobile advertising network, it is very evident that the number of people using mobile...
  4. 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...
  5. Deactivating plugins when unable to loginLast week I encountered a wordpress headers problem due to which I was unable to login to my admin page....
  6. Google sitemap guidelinesEver since Google introduced sitemaps,it  set  very strict guidelines in the making of a sitemap. For your sitemap (which ever...

{ 11 comments… read them below or add one }

Chris August 8, 2010 at 10:20 pm

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.

Reply

suresh June 24, 2010 at 1:26 pm

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

Reply

Sriraj June 24, 2010 at 2:08 pm

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.

Reply

tiny... October 29, 2009 at 9:44 am

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.

Reply

sriraj October 29, 2009 at 11:42 am

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

Reply

Rethnaraj Rambabu June 17, 2009 at 10:37 am

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:

Reply

sriraj June 17, 2009 at 2:16 pm

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.

Reply

Rethnaraj Rambabu June 17, 2009 at 10:30 am

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.

Reply

Oshimai May 4, 2009 at 5:30 pm

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

Reply

levent May 4, 2009 at 12:38 pm

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

Reply

sriraj May 4, 2009 at 11:53 pm

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

Reply

Leave a Comment

{ 1 trackback }

Copyright © 2008-10.Sriraj Digital Magazine.