Skip to content

Loading…

VisitorGenerator: Warning: uasort() The argument should be an array in core\Menu\Abstract.php on line 151 #2242

Closed
mattab opened this Issue · 9 comments

2 participants

@mattab
Piwik Open Source Analytics member

AFter generating visits in the Admin UI, I get the following message

Warning: uasort() [<a href='function.uasort'>function.uasort</a>]: The argument should be an array in D:\piwik\svn\trunk\core\Menu\Abstract.php on line 151

Backtrace -->
#0 Piwik_ErrorHandler(2, uasort() [<a href='function.uasort'>function.uasort</a>]: The argument should be an array, D:\piwik\svn\trunk\core\Menu\Abstract.php, 151, Array ([this] => Piwik_Menu_Admin Object ([] => ,[] => Array ([0] => Array ([0] => CorePluginsAdmin_MenuPlugins,[1] => ,[2] => Array ([module] => CorePluginsAdmin,[action] => index),[3] => ,[4] => 7),[1] => Array ([0] => CoreAdminHome_MenuGeneralSettings,[1] => ,[2] => Array ([module] => CoreAdminHome,[action] => generalSettings),[3] => ,[4] => 6),[2] => Array ([0] => UsersManager_MenuUsers,[1] => ,[2] => Array ([module] => UsersManager,[action] => index),[3] => ,[4] => 3),[3] => Array ([0] => UsersManager_MenuUserSettings,[1] => ,[2] => Array ([module] => UsersManager,[action] => userSe [...]

@robocoder

(In [4271]) fixes #2242 - fix VisitorGenerator

@robocoder

(In [4275]) fixes #2247 - set cip; refs #2242 - remove redundant checktokenauthinurl as we already have checkuserissuper and nonce

@mattab
Piwik Open Source Analytics member

If I generate visits, I still get the error - do you not get it?

Warning: uasort() href='function.uasort'>function.uasort</a>: The argument should be an array in D:\piwik\svn\trunk\core\Menu\Abstract.php on line 155

@robocoder

Sounds like "svn up" didn't pick up the change in [http://dev.piwik.org/trac/changeset/4275#file0].

@mattab
Piwik Open Source Analytics member

OK I just tried again and saw the error, then I tried again and didn't see the error. Not sure what happened!

@robocoder

In [4335] by vipsoft, refs #2242 - coding style

(Is the commit hook not working anymore?)

@robocoder

WTF? I just saw the error again, but now I can't reproduce it. Somehow, it forgets that I'm superuser.

@robocoder

(I would have expected at least the personal settings menu to be displayed.)

@robocoder

(In [4367]) fixes #2242 - ME HATE BUGS! ME SMASH BUGS! DIE BUG DIE!

@mattab mattab added this to the Piwik 1.3 milestone
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.