@robocoder opened this Issue on August 26th 2009 Contributor

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."/>
@mattab commented on August 26th 2009 Owner

why wontfix? it sounds like a bug..

@robocoder commented on August 26th 2009 Contributor

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

@robocoder commented on September 11th 2009 Contributor

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

This Issue was closed on September 11th 2009
Powered by GitHub Issue Mirror