Title: Error when creating a site map
Last modified: August 20, 2016

---

# Error when creating a site map

 *  Resolved [pstranney](https://wordpress.org/support/users/pstranney/)
 * (@pstranney)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/error-when-creating-a-site-map/)
 * Hi there, I am getting the following error when I try to create a new sitemap;
 * Warning: DOMDocument::save(/home/test/public_html/sitemap.xml) [domdocument.save]:
   failed to open stream: Permission denied in /home/test/public_html/wp-content/
   plugins/google-sitemap-plugin/google-sitemap-plugin.php on line 162
 * Any ideas how I can resolve this issue?
 * Thanks in advance,
 * pj
 * [http://wordpress.org/extend/plugins/google-sitemap-plugin/](http://wordpress.org/extend/plugins/google-sitemap-plugin/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/error-when-creating-a-site-map/#post-3260697)
 * Hello pstranney,
 * The plugin does not have permission to create a site map. Please set the rights
   755 for the main folder via ftp and cpanel.
 * Regards,
    Valeria.
 *  Thread Starter [pstranney](https://wordpress.org/support/users/pstranney/)
 * (@pstranney)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/error-when-creating-a-site-map/#post-3260700)
 * no joy, tried 755’ing the google-sitemap-plugin folder and the main public_html
   folder.
 *  [buxmont.tech](https://wordpress.org/support/users/buxmonttech/)
 * (@buxmonttech)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/error-when-creating-a-site-map/#post-3260702)
 * Its not even allowing me to create a sitemap.xml file I selected I want to create
   a new sitemap file and none is being created perm is set to 755, its also not
   updating in the robots.txt file
 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-when-creating-a-site-map/#post-3260756)
 * Hello buxmont.tech,
 * Please check the plugin version and the permissions for files in the folder (
   better, if you set 644 or 755) You should create these files manually (robots.
   txt and sitemap.xml) and set the permissions 755.
 * Regards.
 *  [photocurio](https://wordpress.org/support/users/photocurio/)
 * (@photocurio)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-when-creating-a-site-map/#post-3260764)
 * I’m having the _exact same issue_. Same error message. I have created the robots.
   txt and site map.xml files, and I can read them from my browser. But the plugin
   cannot overwrite them. I set permissions on the folder and files to 755.
 * Maybe the name of the ‘owner’ and ‘group’ that have permission to write the files
   are not the same as the name wordpress uses? I can see the name of the owner 
   and group, but how do I find the name that wordpress is using to write to the
   server?
 *  Plugin Author [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * (@bestwebsoft)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/error-when-creating-a-site-map/#post-3260765)
 * Hi photocurio,
 * Maybe the name of the ‘owner’ and ‘group’ that have permission to write the files
   are not the same as the name wordpress uses? – no, it doesn’t concern writing
   a file.
 * The error can only be in the access permissions. Please check permissions to 
   files and folders.
 * Please make use of the following information suggested by WP –
    [http://codex.wordpress.org/Changing_File_Permissions#Shared_Hosting_with_suexec](http://codex.wordpress.org/Changing_File_Permissions#Shared_Hosting_with_suexec)
 * Sincerely,
    Support Team

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error when creating a site map’ is closed to new replies.

 * ![](https://ps.w.org/google-sitemap-plugin/assets/icon-256x256.gif?rev=2582517)
 * [Sitemap by BestWebSoft - WordPress XML Site Map Page Generator Plugin](https://wordpress.org/plugins/google-sitemap-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-sitemap-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-sitemap-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/google-sitemap-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-sitemap-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-sitemap-plugin/reviews/)

## Tags

 * [google sitemap](https://wordpress.org/support/topic-tag/google-sitemap/)

 * 6 replies
 * 4 participants
 * Last reply from: [bestwebsoft](https://wordpress.org/support/users/bestwebsoft/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/error-when-creating-a-site-map/#post-3260765)
 * Status: resolved