Need help - xml sitemap problem

5 replies
  • WEB DESIGN
  • |
I have a wordpress site that ran into a problem with the sitemap yesterday. It has gone into error and this is a part of the error message:


Fatal error
: Out of memory (allocated 42991616) (tried to allocate 64 bytes) in..........wp-includes/functions.php on line 2913 (I left out part of the file path for security reasons)

I have increased the memory to 64mb and asked to compress it so that it becomes a sitemap.xml.gz to save on memory but it still stays in error.

Anyone able to give me some suggestions on how to solve this issue, please?

Cheers
Viv
#problem #sitemap #xml
  • Profile picture of the author mistyone
    I hope someone can help me with this as it is still in error. I have pulled up the includes/function.php and gone to line 2913 and this is what it says:

    return $can_clone ? clone( $object ) : $object;

    it means nothing to me and I don't know what to do to fix it.

    Any suggestions will be greatly appreciated.

    Cheers
    Viv
    {{ DiscussionBoard.errors[847238].message }}
  • Profile picture of the author Mark Brian
    Try further increasing PHP memory. It should be at least 128MB.
    Signature

    {{ DiscussionBoard.errors[847261].message }}
    • Profile picture of the author mistyone
      Hi Mark

      Thank you for responding

      I have increased the memory to 64mb which is what I was told was the limit for my hosting account which is a baby croc at Hostgator. I have also been in communication with their technical staff and they said that if that didn't fix it they couldn't help me as it is a Wordpress site and falls outside of their support I can understand that, they are very good and patient with me but on this issue I am left to try to sort it out for myself.

      I did read in some documents, in help, that perhaps I should be asking my host to increase the memory for me but if that was the case then they should have done that, as they know it is a memory issue.

      This is the message that is showing on the main page of my sitemap generator:
      • The last run didn't finish! Maybe you can raise the memory or time limit for PHP scripts. Learn more
      • The last known memory usage of the script was 17MB, the limit of your server is 64M.
      • The last known execution time of the script was 0.76 seconds, the limit of your server is 120 seconds.
      • The script stopped around post number 1207 (+/- 100)
      I have tried your suggestion of increasing it to 128mb but it hasn't made any difference. When I click on manually build sitemap, it still displays the same error message in the functions.php. I have also increased the time limit to 110 seconds. I also asked to make it a compressed file, i.e. sitemap.xml.gz but that hasn't helped either.

      So what to do next???

      Cheers
      Viv
      {{ DiscussionBoard.errors[847731].message }}
  • Profile picture of the author Mark Brian
    My guess is that everything's suppose to work because the error info suggests that the resources are more than enough. It's probably that Hostgator has some sort of global resource control, that if an account was using more resources than it should be, then it will force the script to stop.

    That is just my speculation, it could also be caused other stuff. For example, it says the script stopped at post # 1207. Does that particular post contain more than just plain text which could be causing the script to stop?
    Signature

    {{ DiscussionBoard.errors[847779].message }}
  • Profile picture of the author mistyone
    Thanks Mark

    Once again, I really appreciate you taking the time to reply to me

    I will check the post, good idea, if I can find it that is, as it says it stopped around post 1207 plus or minus 100, well that is how I have interpreted it anyway

    I will go hunting!

    Cheers
    Viv
    {{ DiscussionBoard.errors[849442].message }}

Trending Topics