@anonymous-piwik-user opened this issue on June 6th 2012

Error is:

Notice: Undefined index: in /var/www/html/plugins/Referers/Controller.php on line 375

Backtrace -->
#0 Piwik_ErrorHandler(...) called at [/var/www/html/plugins/Referers/Controller.php:375]
#1 Piwik_Referers_Controller->getKeywordsForPage(...) called at [:]
#2 call_user_func_array(...) called at [/var/www/html/core/FrontController.php:138]
#3 Piwik_FrontController->dispatch(...) called at [/var/www/html/index.php:53]

Code seems to be:

                $request = new Piwik_API_Request($topPageUrlRequest);
                $request = $request->process();
                $tables = $request->getArray();
                $topPageUrls = $tables[key($tables)];
                $topPageUrls = $topPageUrls->getRowsMetadata('url');
                $tmpTopPageUrls = array_values($topPageUrls);
                $topPageUrl = current($tmpTopPageUrls);

Where that $tables[key($tables)] is probably empty and gives that notice and then error log says:

2012-06-06 11:48:57: (mod_fastcgi.c.2701) FastCGI-stderr: PHP Fatal
error:  Call to a member function getRowsMetadata() on a non-object
in /var/www/html/plugins/Referers/Controller.php on line 376
@mattab commented on June 17th 2012

Thanks for the report

@mattab commented on June 19th 2012

It's not fixed, I closed by mistake

@mattab commented on July 31st 2012

(In [6612]) Fixes #3200

This issue was closed on July 31st 2012
Powered by GitHub Issue Mirror