Post by wzzly » Mon Oct 29, 2012 9:06 pm

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?

Newbie

Posts

Joined
Fri Oct 19, 2012 9:22 pm
Who is online

Users browsing this forum: Google [Bot] and 59 guests