XML Sitemaps Generator

Author Topic: Fatal error: Out of memory (Shared Hosting) PLEASE HELP!!  (Read 17219 times)

info538

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Fatal error: Out of memory (Shared Hosting) PLEASE HELP!!
« on: May 25, 2008, 01:28:58 AM »
I was getting following error and was not able to completely run the script.

Fatal error: Out of memory (allocated 54525952) (tried to allocate 46 bytes)
in /home/rigved/public_html/generator/pages/class.utils.inc.php(2) :
eval()'d code on line 6


I was suggested Oleg to “Please try to increase memory_limit and max_execution_time settings in php configuration at your host (php.ini file) or contact hosting support regarding this.”
But hosting package is on shared server and hosting company has denied to make following changes.

What should I do now? Is there any other solution??
Please help.
  :(

info538

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: Fatal error: Out of memory (Shared Hosting) PLEASE HELP!!
« Reply #1 on: May 25, 2008, 01:39:48 PM »

Hi Oleg,
I was going thru forums and found out your following solution for memory limit when user cannot modify memory_limit on shared hosting.

Quote
Hello JAP,

if you are not allowed to modify PHP settings to increase memory_limit option, the only way to get the whole site included into sitemap is to try to separate the site on several parts .

For instance, if your site has folders:
/part1/
/part2/
/part3/

you can generate sitemap for every single subfolder (using corresponding "Starting URL" setting) .

It depends on your site structure and may be hard (or impossible) to do in some cases though.

Now I have similar directory structure. So should I generate sitemap for each directory separately like sitemap1, sitemap2,sitemap3,…sitemap100…. and then include all links of all top level directories and links of these other sitemaps in main SITEMAP, Will google crawl my pages if I do it this way?? Is this the right way to do it?

Regards,

Rigved
Quote

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10622
Re: Fatal error: Out of memory (Shared Hosting) PLEASE HELP!!
« Reply #2 on: May 25, 2008, 04:49:46 PM »
Quote
Now I have similar directory structure. So should I generate sitemap for each directory separately like sitemap1, sitemap2,sitemap3,…sitemap100…. and then include all links of all top level directories and links of these other sitemaps in main SITEMAP, Will google crawl my pages if I do it this way?? Is this the right way to do it?
Yes, this solution should work fine and sitemaps will be accepted by Google.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2