Hi

I installed the piwik module, but I am not able to save the configuration settings.
I always get this error:
The validation of "http://www....../piwik.php" failed with error "Bad Request" (HTTP code 400).

When I copy&paste the link of the error message to my browser, then I get this:
Piwik is a free/libre web analytics that lets you keep control of your data.

So, seems the link is working as I understand.

What could be the problem?

CommentFileSizeAuthor
#16 piwik-fixvalidation-2483815-16.patch1.29 KBalexj12

Comments

hass’s picture

Version: 7.x-2.7 » 7.x-2.x-dev
Category: Support request » Task
maurizio_akabit’s picture

lucio.pileggi’s picture

Same problem on my fresh new piwik module installation, testing fail because piwik.php return error code 400.
Looks like the problem is related to this known Piwik issue: https://github.com/piwik/piwik/issues/7850

hass’s picture

Category: Task » Support request
Status: Active » Fixed

The issue is fixed in Piwik and will be in the next piwik release.

metme01454’s picture

Just updated to version 2.13.1, still not fixed. Any idea in which release it will be fixed?
Thanks

hass’s picture

In the next release I guess.

XTCHost’s picture

So is it a Piwik problem or a drupal issue?

I am also using Piwik 2.13.1. and the problem still exists for me so I have added the tracking code to a block in the footer for now. All existing sites are still producing stats but show the same problem if you try and re save the configuration.

On another site I added the piwik plugin for Wordpress and that worked without problems

peterx’s picture

To bypass the Piwik problem, I changed line 444 in piwik.admin.php to:
$url = $piwik_url . 'index.php';

hass’s picture

The issue has been fixed in piwik - not this module.

checker’s picture

If you can't wait and need a workaround immediately. You can do so like peter wrote.

You have to modify lines 444 and 456 (for ssl) in piwik.admin.inc to
$url = $piwik_url . 'index.php';

This should be done back after update in piwik...

Edit: filename (piwik.admin.inc)

metakel’s picture

it should be "piwik.admin.inc", rather than "piwik.admin.php".

user1985’s picture

Hi,

I am trying to find the location of the file piwik.admin.php but couldn't. could anyone please let me know the location..

thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

beardedgeek’s picture

I have the same issue, but Im running the latest version of Piwik 2.13.1

pvdpdrop’s picture

Workaround of Peter works: just edit /sites/all/modules/piwik/piwik.admin.inc at line 444 and 456 to replace "piwik.php" by "index.php".
Thanks for the workaround, while waiting for the bugfix in a next release.

alexj12’s picture

StatusFileSize
new1.29 KB

Created a quick patch for this

alexj12’s picture

Status: Closed (fixed) » Needs review
hass’s picture

Status: Needs review » Closed (fixed)
pBartels’s picture

The patch is working but not yet part of piwik-7.x-2.x-dev, please add it. Thanks!