Matt
here is the errors we get (in the widget) after commenting the line in controller.php
There is an error. Please report the message and full backtrace in the Piwik forums.
Notice: Undefined variable: code in /example/analytics/piwik/plugins/Referers/Controller.php on line 388
Backtrace -->
#0 Piwik_ErrorHandler(8, Undefined variable: code, /example/analytics/piwik/plugins/Referers/Controller.php, 388, Array ([requestUrl] => &date=previous1&period=week&idSite=1,[topPageUrlRequest] => &date=previous1&period=week&idSite=1&method=Actions.getPageUrls&filter_limit=50&format=original,[request] => Piwik_DataTable_Array Object ([metadata] => Array ([2011-03-07 to 2011-03-13] => Array ([timestamp] => 1299456000,[site] => Piwik_Site Object ([] => 1),[period] => Piwik_Period_Week Object ([] => week,[] => Array ([0] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => ,[] => Piwik_Date Object ([] => 1299511699,[] => UTC)),[1] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => ,[] => Piwik_Date Object ([] => 1299598099,[] => UTC)),[2] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => ,[] => Piwik_Date Object ([] => 1299684499,[] => UTC)),[3] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => ,[] => Piwik_Date Object…#1 Piwik_Referers_Controller::getKeywordsForPage() called at [/example/analytics/piwik/plugins/Referers/Controller.php:388]#2 Piwik_Referers_Controller->getKeywordsForPage()#3 call_user_func_array(Array ([0] => Piwik_Referers_Controller Object ([] => Array ([1] => Referers_DirectEntry,[2] => Referers_SearchEngines,[3] => Referers_Websites,[6] => Referers_Campaigns),[] => Referers,[] => 2011-03-18,[] => Piwik_Date Object ([] => 1300406400,[] => UTC),[] => 1,[] => Piwik_Site Object ([] => 1)),[1] => getKeywordsForPage), Array ()) called at [/example/analytics/piwik/core/FrontController.php:125]#4 Piwik_FrontController->dispatch() called at [/example/analytics/piwik/index.php:57]
There is an error. Please report the message and full backtrace in the Piwik forums.
Notice: Undefined variable: api in /example/analytics/piwik/plugins/Referers/Controller.php on line 359
Backtrace -->
#0 Piwik_ErrorHandler(8, Undefined variable: api, /example/analytics/piwik/plugins/Referers/Controller.php, 359, Array ([url] => http://www.example.com,[timeout] => 1)) called at [/example/analytics/piwik/plugins/Referers/Controller.php:359]#1 DisplayTopKeywords(http://www.example.com) called at [/example/analytics/piwik/plugins/Referers/Controller.php:389]#2 Piwik_Referers_Controller->getKeywordsForPage()#3 call_user_func_array(Array ([0] => Piwik_Referers_Controller Object ([] => Array ([1] => Referers_DirectEntry,[2] => Referers_SearchEngines,[3] => Referers_Websites,[6] => Referers_Campaigns),[] => Referers,[] => 2011-03-18,[] => Piwik_Date Object ([] => 1300406400,[] => UTC),[] => 1,[] => Piwik_Site Object ([] => 1)),[1] => getKeywordsForPage), Array ()) called at [/example/analytics/piwik/core/FrontController.php:125]#4 Piwik_FrontController->dispatch() called at [/example/analytics/piwik/index.php:57]
Error while fetching the Top Keywords from Piwik
There is an error. Please report the message and full backtrace in the Piwik forums.
Notice: Undefined variable: code in /example/analytics/piwik/plugins/Referers/Controller.php on line 393
Backtrace -->
#0 Piwik_ErrorHandler(8, Undefined variable: code, /example/analytics/piwik/plugins/Referers/Controller.php, 393, Array ([requestUrl] => &date=previous1&period=week&idSite=1,[topPageUrlRequest] => &date=previous1&period=week&idSite=1&method=Actions.getPageUrls&filter_limit=50&format=original,[request] => Piwik_DataTable_Array Object ([metadata] => Array ([2011-03-07 to 2011-03-13] => Array ([timestamp] => 1299456000,[site] => Piwik_Site Object ([] => 1),[period] => Piwik_Period_Week Object ([] => week,[] => Array ([0] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => ,[] => Piwik_Date Object ([] => 1299511699,[] => UTC)),[1] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => ,[] => Piwik_Date Object ([] => 1299598099,[] => UTC)),[2] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => ,[] => Piwik_Date Object ([] => 1299684499,[] => UTC)),[3] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => ,[] => Piwik_Date Object…#1 Piwik_Referers_Controller->getKeywordsForPage()#2 call_user_func_array(Array ([0] => Piwik_Referers_Controller Object ([] => Array ([1] => Referers_DirectEntry,[2] => Referers_SearchEngines,[3] => Referers_Websites,[6] => Referers_Campaigns),[] => Referers,[] => 2011-03-18,[] => Piwik_Date Object ([] => 1300406400,[] => UTC),[] => 1,[] => Piwik_Site Object ([] => 1)),[1] => getKeywordsForPage), Array ()) called at [/example/analytics/piwik/core/FrontController.php:125]#3 Piwik_FrontController->dispatch() called at [/example/analytics/piwik/index.php:57]