Address Cache Dashlet

Tried adding address cache dashlet just to see what its about. I received the following stack-trace:

 
Warning: Invalid argument supplied for foreach() occurred in /home/techcade/public_html/SuiteCRM/include/Dashlets/DashletGeneric.php on line 279 [2013-11-22 12:34:13] display_stack_trace caller, file: /home/techcade/public_html/SuiteCRM/include/utils.php line#: 3251
/home/techcade/public_html/SuiteCRM/include/Dashlets/DashletGeneric.php[L:279](:StackTraceErrorHandler)
/home/techcade/public_html/SuiteCRM/include/Dashlets/DashletGeneric.php[L:373](DashletGeneric:buildWhere)
/home/techcade/public_html/SuiteCRM/custom/modules/Home/index.php[L:240](DashletGeneric:process)
/home/techcade/public_html/SuiteCRM/include/MVC/View/SugarView.php[L:712](:require_once)
/home/techcade/public_html/SuiteCRM/include/MVC/View/views/view.classic.php[L:67](SugarView:includeClassicFile)
/home/techcade/public_html/SuiteCRM/include/MVC/View/SugarView.php[L:140](ViewClassic:display)
/home/techcade/public_html/SuiteCRM/include/MVC/Controller/SugarController.php[L:345](SugarView:process)
/home/techcade/public_html/SuiteCRM/include/MVC/Controller/SugarController.php[L:292](SugarController:processView)
/home/techcade/public_html/SuiteCRM/include/MVC/SugarApplication.php[L:89](SugarController:execute)
/home/techcade/public_html/SuiteCRM/index.php[L:46](SugarApplication:execute) 

It’s trying to enumerate through something

Scott

Hi

I have solved this error by checking the Variables in the following link

modules/jjwg_Address_Cache/Dashlets/jjwg_Address_Cache/Dashlets/jjwg_Address_CacheDashlet/jjwg_Address_CacheDashlet.php

$this->searchFields = $dashletData[‘jjwg_Address_CacheDashlet’][‘searchFields’];
$this->columns = $dashletData[‘jjwg_Address_CacheDashlet’][‘columns’];

i made the change in the variables in the following modules/jjwg_Address_Cache/metadata/dashletviewdefs.php just added d in the following lines

ie lines $dashletData[‘jjwg_Address_CacheDashlet’][‘searchFields’]
$dashletData[‘jjwg_Address_CacheDashlet’][‘columns’]

then error got fixed and dashlet is working now

Thanks,
Ajay