Skip to content


Subversion checkout URL

You can clone with
Download ZIP


API doesn't handle null default parameters well... #953

robocoder opened this Issue · 3 comments

2 participants


Let's say API.php contains:

public function test($idSite = null)

Unless the method is called with idSite non-empty, Piwik returns:

<error message="The parameters are not valid. The method called requires 0 parameters. Please check your URL and the method API."/>

why wontfix? it sounds like a bug..


The exception is generated in the check for null parameters. So, I assumed this was by design/intentional.


In [1466], fixes #953 - API doesn't handle default null parameters; remove checkParametersAreNotNull

@robocoder robocoder added this to the Piwik 0.4.4 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.