Fatal Error: Out Of Memory

I received this error and would like to know if there are any config settings that I can increase. I am on a shared server. Database is about 60 meg with about 500 products.



Fatal error: Out of memory (allocated 1835008) (tried to allocate 122880 bytes) in /home/acccount/public_html/core/fn.catalog.php



I have this for mysql settings:

max_heap_table_size | 536870912 |

| tmp_table_size | 536870912



My host says I have 131gig free temp space.



Thank you,

Bob

Have you tried to change the memory_limit value in file config.local.php?

Hi,

In this file, public_html/config.local.php, I have this:

// Set maximum memory limit



// Set maximum time limit for script execution

// @set_time_limit(3600);



I don't see any memory parameter.

Also, this is for version 2.2.4 PRO.

Thank you,

Bob

Add:


@ini_set('memory_limit', '64M');

Thanks,

Where do I add it , under // Set maximum memory limit? Looks like it may be commented out.

Bob



/



// Disable notices displaying

error_reporting(E_ALL ^ E_NOTICE);



// Set maximum memory limit



// Set maximum time limit for script execution

// @set_time_limit(3600);



/

Yes and I would uncomment the set_time_limit() line too.

Here is the code from the default config.local.php file:



// Set maximum memory limit
if (PHP_INT_SIZE == 4 && (substr(ini_get('memory_limit'), 0, -1) < "64")) {
// 32bit PHP
@ini_set('memory_limit', '64M');
} elseif (PHP_INT_SIZE == 8 && (substr(ini_get('memory_limit'), 0, -1) < "256")) {
// 64bit PHP
@ini_set('memory_limit', '256M');
}
// Set maximum time limit for script execution
@set_time_limit(3600);