Error: Top Keywords for Page URL


#1
There is an error. Please report the message and full backtrace in the Piwik forums.

Warning: Invalid argument supplied for foreach() in /mnt/web6/60/08/51771208/htdocs/_self/track/plugins/Referers/Controller.php(388) : eval()'d code on line 19 

Backtrace -->
#0 Piwik_ErrorHandler(2, Invalid argument supplied for foreach(), /mnt/web6/60/08/51771208/htdocs/_self/track/plugins/Referers/Controller.php(388) : eval()'d code, 19, Array ([url] => http://myWebsite,[timeout] => 1,[api] => http://myhost/?module=API&method=Referers.getKeywordsForPageUrl&format=php&filter_limit=10&token_auth=963e1188c20db310bb8e44e635a7cdc&date=previous1&period=week&idSite=1&url=http%3A%2F%2FmyWebsite,[http_response_header] => Array ([0] => HTTP/1.1 200 OK,[1] => Date: Tue, 29 Mar 2011 23:46:35 GMT,[2] => Server: Apache/2.2.17 (Unix),[3] => Last-Modified: Mon, 28 Mar 2011 21:07:39 GMT,[4] => ETag: "874bfb4-3c7-49f91556f4f61",[5] => Accept-Ranges: bytes,[6] => Content-Length: 967,[7] => Connection: close,[8] => Content-Type: text/html),[keywords] => ,[output] => <h2>Top Keywords for <a href='http://myWebsite'>http://myWebsite</a></h2><ul>)) called at [/mnt/web6/60/08/51771208/htdocs/_self/track/plugins/Referers/Controller.php(388) ...#1 DisplayTopKeywords(http://myWebsite) called at [/mnt/web6/60/08/51771208/htdocs/_self/track/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-29,[] => Piwik_Date Object ([] => 1301356800,[] => UTC),[] => 1,[] => Piwik_Site Object ([] => 1)),[1] => getKeywordsForPage), Array ()) called at [/mnt/web6/60/08/51771208/htdocs/_self/track/core/FrontController.php:125]#4 Piwik_FrontController->dispatch() called at [/mnt/web6/60/08/51771208/htdocs/_self/track/index.php:57]

If I try to insert the widget “Top Keywords for Page URL” into the Dashboard, I will get this error. It doesn’t make any difference if I use a other Website. Now I did what the error said to me :?.

Good night!


(jekko) #2

I couldn’t get this to work either (see forum post) we had a similar error

still waiting for an answer but it does work on the demo

Jek


#3

On my server ‘allow_url_fopen’ is on. I uncommented this line

echo "Error while fetching the <a href=\'$api\'>Top Keywords from Piwik</a>"; return;

Now I got:


Error while fetching the 
<a href="http://localhost/www/_lib/piwik-analyse/piwik/?module=API&method=Referers.getKeywordsForPageUrl&format=php&filter_limit=10&token_auth=929d9d88c&date=previous1&period=week&idSite=1&url=http%3A%2F%2mySite">Top Keywords from Piwik</a>

And the target show me “a:0:{}”.

I’m confused that the demo is working. I have a fresh installed Version 1.2.1, PHP Version 5.3.1, MySQL Version 5.1.41, I use MySQli.