Jump to content

[SOLVED] Google sitemape in the version 1.3.0.6


Guest Steven_king

Recommended Posts

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?

22408_nPicyg47wSmonxtTMh2L_t

Link to comment
Share on other sites

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

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

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

  • 2 weeks later...
  • 2 weeks later...

Thanks for your reply

Rocky,
i installed this module but i got error when i click the update sitemap file button

Fatal error: Call to undefined method Tools::getHttpHost() in /home/prestcom/public_html/modules/gsitemap/gsitemap.php on line 66

Can you help me ?

Link to comment
Share on other sites

  • 4 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...