Page 1 of 1

Fatal error: Allowed memory size "ianalytics.php"

Posted: Mon Oct 29, 2012 9:06 pm
by wzzly
Hi all,

when I tried to login to my admin panel I got this error:

Code: Select all

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /httpdocs/admin/model/catalog/ianalytics.php on line 148
This is the code arround line 148:

Code: Select all

			for ($i=$this->data['iAnalyticsFromDate']; strcmp($i, $this->data['iAnalyticsToDate']) <= 0; $i = date('Y-m-d', strtotime($i) + 86400)) {
				$theday = date("j-n-Y",strtotime($i));
				$days[] = array($theday,$this->getNumberSearchesByDay($data,$theday,'success'),$this->getNumberSearchesByDay($data,$theday,'fail'));
			}

When I raise my memory_limit from 64M to 128M in my php.ini I get the same error but a different line:

Code: Select all

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35 bytes) in /httpdocs/admin/model/catalog/ianalytics.php on line 417
This is the code around line 417:

Code: Select all

		if (empty($data['Searches'])) {
			return array(0 => 'No Data Gathered Yet', 1=> 'No Data Gathered Yet',3 => 'No Data Gathered Yet');	
		}

I didn't change any code I think... any solutions?