Guest Posted April 22, 2010 Share Posted April 22, 2010 Google sitemap generator doesn't work when creating a sitemap.xml with 35 thousand records in it.It becomes blank.It works when testing locally.Anybody know what it the problem with it? Link to comment Share on other sites More sharing options...
rocky Posted April 22, 2010 Share Posted April 22, 2010 It is probably a memory exhausted error. Check your PHP errorlog to be sure or edit config/config.inc.php and temporarily change 'display_errors' to 'on'. If it is a memory exhausted error, you need to increase the memory_limit in your php.ini file. Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2010 Share Posted April 22, 2010 Hi rocky,I turned on the "display_error" as you told then I regenerate the goolge sitemap, then the following information came up:"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6226175 bytes) in /home/jansh0/public_html/modules/gsitemap/gsitemap.php on line 169"How can I increase the memory_limit? Should I contact my web host supplier? Link to comment Share on other sites More sharing options...
rocky Posted April 22, 2010 Share Posted April 22, 2010 Do you have a php.ini file? You can set "memory_limit = 128M;". Alternatively, you can also add the code @ini_set('memory_limit', '128M'); at the top of modules/gsitemap/gsitemap.php. This won't work if your server has a set maximum memory limit though. From the error message, it looks like the module is trying to allocate 64M! A module shouldn't have to allocate that much memory. I guess the Google sitemap module wasn't designed for large catalogues. Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2010 Share Posted April 22, 2010 Hi Rocky,No luck for me.I added the code but the gsitemap.php become blank. Link to comment Share on other sites More sharing options...
rocky Posted April 22, 2010 Share Posted April 22, 2010 You left out the semicolon at the end of the line. Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2010 Share Posted April 22, 2010 Rocky,you are an expert! Fixed it, thank you very much. Link to comment Share on other sites More sharing options...
BeautyCosmetic Posted May 5, 2010 Share Posted May 5, 2010 You left out the semicolon at the end of the line. Thank you very much !! Link to comment Share on other sites More sharing options...
Ferdem Posted May 17, 2010 Share Posted May 17, 2010 Can you attach to gsitemap.php file? Link to comment Share on other sites More sharing options...
Ferdem Posted May 20, 2010 Share Posted May 20, 2010 Pls attach the working module folder Link to comment Share on other sites More sharing options...
Guest Posted May 20, 2010 Share Posted May 20, 2010 Why don't u do as Rocky told by you self? it is easy! Link to comment Share on other sites More sharing options...
rocky Posted May 20, 2010 Share Posted May 20, 2010 I've attached the Google sitemap module from PrestaShop v1.3.0.10 with the line above to increase the memory_limit to 128M. gsitemap v1.3.0.10 + increased memory limit.zip Link to comment Share on other sites More sharing options...
Ferdem Posted May 21, 2010 Share Posted May 21, 2010 Thanks for your replyRocky,i installed this module but i got error when i click the update sitemap file buttonFatal error: Call to undefined method Tools::getHttpHost() in /home/prestcom/public_html/modules/gsitemap/gsitemap.php on line 66Can you help me ? Link to comment Share on other sites More sharing options...
rocky Posted May 21, 2010 Share Posted May 21, 2010 I didn't realise that the latest Google sitemap module relied on core changes in PrestaShop v1.3. Just use your existing Google sitemap module and add the line mentioned above. Link to comment Share on other sites More sharing options...
hug Posted October 17, 2010 Share Posted October 17, 2010 Hello, translate language, not English. forgive.This solution a success for my work, thank you very much.But adding a detail, copy and paste the code as shown above, the quotes are wrong for telling interior page on file for the code does not recognize limited memory, then I change the quotes with normal work first time, add file here with quotes, in case anyone same thing happened.Greetings@ini_set( ' memory_limit ' , ' 128M ' );sitemap archive in use prestashop 1.3.1 gsitemap.php Link to comment Share on other sites More sharing options...
huiru Posted October 18, 2010 Share Posted October 18, 2010 at the top of modules/gsitemap/gsitemap.php. This won’t work if your server has a set maximum memory limit though. From the error message, it looks like the module is trying to allocate 64M! A module shouldn’t hi think so...pandora Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now