Mr.Curiosity Posted July 18, 2013 Share Posted July 18, 2013 I tried to submit my sitemaps to google webmaster tools today, and i got this error. (check the picture) So I tried to locate my gsitemap module, but I cannot find gsitemap module, it is not even there in the installation file. So I download it from https://github.com/PrestaShop/PrestaShop-modules After installing gsitemap module, I tried to generate the sitemap and I got this error : An error occured while trying to check your file permissions. Please adjust your permissions to allow PrestaShop to write a file in your root directory. (check the picture) I set the gsitemap module to 777, but it doesnt help. I have no more idea what I should do.. please help.. Link to comment Share on other sites More sharing options...
Dh42 Posted July 18, 2013 Share Posted July 18, 2013 Try creating a blank file in the root of your site called sitemap.xml set the permissions to 755 then try the module again. Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted July 18, 2013 Author Share Posted July 18, 2013 (edited) Try creating a blank file in the root of your site called sitemap.xml set the permissions to 755 then try the module again. Still getting the same result. I tried to click on my sitemap.xml in my spanel and I get this (check image) what's wrong? Edited July 18, 2013 by Mr.Curiosity (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted July 18, 2013 Share Posted July 18, 2013 Where is that screenshot coming from? Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted July 18, 2013 Author Share Posted July 18, 2013 (edited) Where is that screenshot coming from? from my spanel/hosting, it is NOT from prestashop or module Edited July 18, 2013 by Mr.Curiosity (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted July 18, 2013 Share Posted July 18, 2013 Do you still get the error in prestashop when you try to generate the sitemap? Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted July 18, 2013 Author Share Posted July 18, 2013 Do you still get the error in prestashop when you try to generate the sitemap? Yes, still getting the same error. Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted July 21, 2013 Author Share Posted July 21, 2013 anyone out there able to help me? Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2013 Share Posted July 21, 2013 hello the file sitemap.xml exist on your server? if so, can you please share te url? you said that you changed permissions to module directory, you use recursive chmod? But i think that is not necessary, cause sitemap is usually located in the root dir of the store. in this case try to create file manually and then change the permission for this file 1 Link to comment Share on other sites More sharing options...
El Patron Posted July 21, 2013 Share Posted July 21, 2013 you don't set the gsitemap module permissions, you set the root/sitemap.xml to write hello the file sitemap.xml exist on your server? if so, can you please share te url? you said that you changed permissions to module directory, you use recursive chmod? But i think that is not necessary, cause sitemap is usually located in the root dir of the store. in this case try to create file manually and then change the permission for this file do this...make sure 755 or higher permissions Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted July 21, 2013 Author Share Posted July 21, 2013 you don't set the gsitemap module permissions, you set the root/sitemap.xml to write do this...make sure 755 or higher permissions Yes, I set root/sitemap.xml to 755. even when I set to 777, it still says "An error occured while trying to check your file permissions. Please adjust your permissions to allow PrestaShop to write a file in your root directory." 1 Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted July 21, 2013 Author Share Posted July 21, 2013 hello the file sitemap.xml exist on your server? if so, can you please share te url? you said that you changed permissions to module directory, you use recursive chmod? But i think that is not necessary, cause sitemap is usually located in the root dir of the store. in this case try to create file manually and then change the permission for this file Yes I create a new file named sitemap.xml under the root. what URL do you mean? no i set the permmision on the sitemap.xml not the gsitemap module. Link to comment Share on other sites More sharing options...
El Patron Posted July 21, 2013 Share Posted July 21, 2013 I'm getting old/dated. the sitemap generated is not sitemap.xml anymore...it can have different names an/or multiple files depending on your shop configuration, multiple languages/multiple shops. for a single shop 1.5.4 the sitemap name is 1_index_sitemap.xml the first thing the module will do at creation is delete (if it exists) the file it will write to then it create the file it will write to...1_index_sitemap.xml if the module can not create the file, then your site may not run as the correct user and/or group. if this is the case you should contact your hosting company, and or find new hosting It will not matter if you create the file with the correct permissions as the module will delete it...but you could create it, run it and see if the file disappears, not that this answers much other than the module can delete but not add. what a mess eh Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted July 21, 2013 Author Share Posted July 21, 2013 finally ! i managed to generate the sitemap by changing the permission directly on the root. but here's what I got. I have 2 sitemap.xml. Please set up the following Sitemap URL in your Google Webmaster account: http://www.aquahobi.com/1_index_sitemap.xml This URL is the master Sitemap and refers to: 1_id_0_sitemap.xml Your last update was: Mon, 22 Jul 2013 00:23:16 +0700 1 seems to to be correct, and the other one have a very short and weird link inside it. Is it normal? Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted July 21, 2013 Author Share Posted July 21, 2013 (edited) Not sure what happen, now I cant even access my own website. will check with my hosting Edited July 21, 2013 by Mr.Curiosity (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 21, 2013 Share Posted July 21, 2013 with sitemap everything is ok and what's goin on with our host? Link to comment Share on other sites More sharing options...
Richard S Posted February 5, 2014 Share Posted February 5, 2014 This is usually due owner/group error. PrestaShop seems to have this problem quite often these days. I have never ever had anything like that with WordPress servers.You need to make sure that your file group and owner is the same as the file which executes PHP code. You can check this in FileZilla's last column when connected to server Link to comment Share on other sites More sharing options...
El Patron Posted March 11, 2014 Share Posted March 11, 2014 You all should read: http://www.prestashop.com/forums/topic/259855-google-sitemap-module-problem-after-latest-update/page-10 what in particular is helpful in this post? Or are you referring to your post? One issue I can see from your posts is that you do not post a new topic. This provides best results posting on old topic with many different directions is not a good idea. In the future please try new topic method. Link to comment Share on other sites More sharing options...
connectcase Posted July 13, 2015 Share Posted July 13, 2015 I might be me, but a module that requires me to change permissions on my rootfolder does not seem very safe.... Link to comment Share on other sites More sharing options...
xript3r Posted November 25, 2016 Share Posted November 25, 2016 I have the same problem, I open the module PHP file, and find that it write first the information to a file named "test.txt" on the root of your site... so I create "test.txt" and "1_index_sitemap.xml" on the root of my site, change their permissions and it works correctly... Link to comment Share on other sites More sharing options...
Recommended Posts