400 Bad request - GET

Hello,

I have a problem of 400 Bad request on the last version (2.16.0)

Configuration :
Synology 412+
Vr. Piwik : 2.16.0

The basic version on Synology package was 2.12.0, very old and a lot of graphic bug. But at least it was working. I upgrade on the 2.16.0 and I have a bad request when the client send user info.

Here the GET :

http://xx.xx.xx.xx:xxxxx/piwik/piwik.php?action_name=PLACH%C3%9D%20-%20Stephane%20v%20Cechach&idsite=2&rec=1&r=473215&h=13&m=40&s=35&url=http%3A%2F%2Fwww.stephanevcechach.cz%2Fplachy%2F&urlref=http%3A%2F%2Fwww.stephanevcechach.cz%2F&_id=62cb1a0a67c86949&_idts=1457650450&_idvc=5&_idn=0&_refts=0&_viewts=1457785623&send_image=0&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=2880x1800&gt_ms=2967
Request Method:GET
Status Code:400 Bad Request
Remote Address: xx.xx.xx.xx:xxxxx

I have this error on all my websites. One is a code on a PHP page ‘direct’, one is with the plugin WP-PIWIK

Thanks for your help :slight_smile:

I figured it out. Instead of having the URL point to the http://example.com/piwik/piwik.php, it should just be going to http://example.com/piwik

Source:java - Piwik returns 400 bad request when trying to send tracking data via API - Stack Overflow