@anonymous-matomo-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 -->
<a href='/0'>#0</a> Piwik_ErrorHandler(...) called at [/var/www/html/plugins/Referers/Controller.php:375]
<a href='/1'>#1</a> Piwik_Referers_Controller->getKeywordsForPage(...) called at [:]
<a href='/2'>#2</a> call_user_func_array(...) called at [/var/www/html/core/FrontController.php:138]
<a href='/3'>#3</a> 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 Member

Thanks for the report

@mattab commented on June 19th 2012 Member

It's not fixed, I closed by mistake

@mattab commented on July 31st 2012 Member

(In [6612]) Fixes #3200

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