http://www.nuxified.com |http://debcentral.org
yagiuda wrote:
XOOPS Version: 2.2.3 Final
PHP Version: 4.3.9
MySQL Version: 4.1.10
Web Server Software: Apache
Default Theme: kubrick
Every now and then (in periods quite frequently) I get a whitepage and the following error in the server error log:
"PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 500001 bytes) in .../web/xoops/class/snoopy/Snoopy.class.php on line 882, referer:http://...../xoops/modules/wordpress/
Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)"
If I wait 5 minutes, and try again, the error is gone, and the page loads OK.
It only seem to happen on the toppage, If I go directly to the modulepages, everything is OK.
I am running on a shared server, so I am not allowed to change the memory_limit in php.ini
What do I do?
Please?
if (function_exists('memory_get_usage') && $start_mem > 0) {
$total_mem = memory_get_usage()-$start_mem;
$foot1 .= '<br />Memory Usage: '.(($total_mem >= 1048576) ? round((round($total_mem / 1048576 * 100) / 100), 2).' MB' : (($total_mem >= 1024) ? round((round($total_mem / 1024 * 100) / 100), 2).' KB' : $total_mem.' Bytes'));
}