Hi,

Got the module installed correctly, but on the settings page (/admin/settings/piwik), I cannot save the settings. When I do I receive the error message:

The validation of "http://www.MYDOMAIN.com/piwik/piwik.php" failed with error "Connection refused" (HTTP code -111).

Obviously, I'm not using "MYDOMAIN", I'm using the proper domain, but I'm not entirely comfortable putting the full URL up for the sake of my clients' privacy.

Any help, as always, appreciated.

Regards

Patrick

Comments

hass’s picture

Status: Active » Fixed

Carefully read the description below the input box.

Patrick Nelson’s picture

Status: Fixed » Active

OK, let me try again.

The input box is labelled Piwik HTTP URL: *
The description below it reads The URL to your Piwik base directory. Example: "http://www.example.com/piwik".

So I enter http://www.bournesdebt.co.uk/piwik

And I get the error message:

The validation of "http://www.bournesdebt.co.uk/piwik/piwik.php" failed with error "Connection refused" (HTTP code -111).

Is that careful enough for you?

Regards

Patrick

hass’s picture

Status: Active » Fixed

Open http://www.bournesdebt.co.uk/piwik/piwik.php manually from the same host and check out the HTTP status code - must be the same. Fix your broken webserver configuration, please. Very often mod_security was found as the reason... or it's a loopback interface/firewall issue (if your Drupal and Piwik site is on the same host).

The error is not in the piwik module - it's your webserver that refuses the connection and you need to find out why...

Status: Fixed » Closed (fixed)

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

flatfeat’s picture

For anyone else having this problem, it turned out that the resolution for me wasn't a permissions issue, but that the url I entered had to have the www in front of it, in order to exactly match the url I had entered during setting up the module on my server. Make sure that the URL exactly matches.