• Fatal Error while rebuilding.You can see the memory limit of my server is enough high, but still wrong.

    Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 122880 bytes) in /home/loanguid/public_html/0wonderfularticle/wp-includes/class-snoopy.php on line 879

    Status:
    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 14.25MB, the limit of your server is 256M.
    The last known execution time of the script was 0.08 seconds, the limit of your server is 120 seconds.
    The script stopped around post number 100 (+/- 100)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hmm, the error message says that the allowed memory size is 262 144 byte = 0.25 megabytes. Could you check if you have another plugin which tries to change the memory limit?

    Hey ehaining, I’m getting this exact same problem on the same line in the same file.

    I’ve set my memory limit to 32mb in php.ini and the time to 120 seconds (I get the problem immediately:there’s no execution time taken, really)

    How did you fix it?

    Cheers,
    Ian

    I fixed this by editing /wp-includes/class-snoopy.php and added the following line above “$_data = fread($fp, $this->maxlength”); at line 894

    so it looks like:

    ini_set(‘memory_limit’,’32M’); //Ian: Dunno why this was set wrongly
    $_data = fread($fp, $this->maxlength);

    I don’t know why I needed to do this, as memory_limit is set to 32M in php.ini anyway :S (as follows:)

    max_execution_time = 120 ; Maximum execution time of each script, in seconds
    max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
    ;max_input_nesting_level = 64 ; Maximum input variable nesting level
    memory_limit = 32M ; Maximum amount of memory a script may consume (16MB)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Google XML Sitemaps] Fatal error: Allowed memory size of 262144 bytes exhausted’ is closed to new replies.