Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Undefined index in Top Keywords for Page URL (v1.8.2) #3200

Closed
anonymous-piwik-user opened this Issue · 3 comments

2 participants

Anonymous Piwik user Matthieu Aubry
Anonymous Piwik user

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
Matthieu Aubry
Owner

Thanks for the report

Matthieu Aubry
Owner

It's not fixed, I closed by mistake

Matthieu Aubry
Owner

(In [6612]) Fixes #3200

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.