Jump to content

 

The Tool

Member Since 30 Mar 2007
Offline Last Active Yesterday, 08:17 PM
*****

Topics I've Started

Cs-Cart Memory_Limit

17 January 2020 - 05:55 PM

Does anyone know where CSC sets the memory_limit?  It used to be in /config.local.php but it looks like they removed it in 4.9.2.

// 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');
}

 


Php Fatal Error - Timezone_Identifiers_List

09 July 2019 - 01:46 PM

I'm running 4.9.3 and have been noticing these errors once every couple of days.

[09-Jul-2019 01:27:41 America/Chicago] PHP Fatal error:  Allowed memory size of 805306368 bytes exhausted (tried to allocate 20480 bytes) in /home/account/public_html/app/functions/fn.init.php on line 864
[09-Jul-2019 01:27:41 America/Chicago] PHP Fatal error:  Allowed memory size of 805306368 bytes exhausted (tried to allocate 32768 bytes) in /home/account/public_html/app/Tygh/Exceptions/PHPErrorException.php on line 1

Line 864 in fn.init.php shows:
 

    $valid_timezone_identifiers = timezone_identifiers_list();

Anybody have any ideas what is going on? I am assuming it cannot populate the timezone list. I am not sure but I think the errors began after I started using redis for sessions.