piwik does not work, error when connecting to script
-
Hello,
i have issue after some WP PIWIK update. I can not connect to script. It is installed on the same server as WordPress.
THis is the error i receive:WP-Piwik 1.0.1 konnte sich mit Deiner Konfiguration nicht mit Piwik verbinden. Bitte überprüfe die ?Mit Piwik verbinden?-Sektion unten.
So, Piwik url and Token are correct.
Please help. Thanks!
-
Can you run the test script and post the results here, please?
(Settings -> WP-Piwik -> Support)Please also give some additional details (Piwik version, WordPress version, updated from version … etc.)
wordpress version 4.2.2
wp piwik 1.0.1
piwik 2.13.1.I have removed url below because of client. Thanks
WP-Piwik 1.0.1 Mode: http Test 1/3: global.getPiwikVersion bool(false) array(2) { [0]=> string(307) "HTTP/1.1 400 Bad Request Server: nginx/1.7.9 Date: Mon, 01 Jun 2015 11:45:17 GMT Content-Type: text/html Content-Length: 1393 Connection: keep-alive Last-Modified: Wed, 25 Jun 2014 08:34:12 GMT ETag: "13a09a2-571-4fca4f0dc7653" Accept-Ranges: bytes Host-Header: 192fc2e7e50945beb8231a492d6a8024 " [1]=> string(233) "https://_url_/?module=API&method=API.getBulkRequest&format=php&urls[0]=method%3DVisitsSummary.getUniqueVisitors%26idSite%3D%26period%3Dday%26date%3Dlast30&urls[1]=method%3DAPI.getPiwikVersion%26idSite%3D&token_auth=..." } Test 2/3: SitesManager.getSitesWithAtLeastViewAccess bool(false) array(2) { [0]=> string(307) "HTTP/1.1 400 Bad Request Server: nginx/1.7.9 Date: Mon, 01 Jun 2015 11:45:17 GMT Content-Type: text/html Content-Length: 1393 Connection: keep-alive Last-Modified: Wed, 25 Jun 2014 08:34:12 GMT ETag: "13a09a2-571-4fca4f0dc7653" Accept-Ranges: bytes Host-Header: 192fc2e7e50945beb8231a492d6a8024 " [1]=> string(305) "https://_url_/?module=API&method=API.getBulkRequest&format=php&urls[0]=method%3DVisitsSummary.getUniqueVisitors%26idSite%3D%26period%3Dday%26date%3Dlast30&urls[1]=method%3DAPI.getPiwikVersion%26idSite%3D&urls[2]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3D&token_auth=..." } Test 3/3: SitesManager.getSitesIdFromSiteUrl bool(false) array(2) { [0]=> string(307) "HTTP/1.1 400 Bad Request Server: nginx/1.7.9 Date: Mon, 01 Jun 2015 11:45:17 GMT Content-Type: text/html Content-Length: 1393 Connection: keep-alive Last-Modified: Wed, 25 Jun 2014 08:34:12 GMT ETag: "13a09a2-571-4fca4f0dc7653" Accept-Ranges: bytes Host-Header: 192fc2e7e50945beb8231a492d6a8024 " [1]=> string(410) "https://_url_/?module=API&method=API.getBulkRequest&format=php&urls[0]=method%3DVisitsSummary.getUniqueVisitors%26idSite%3D%26period%3Dday%26date%3Dlast30&urls[1]=method%3DAPI.getPiwikVersion%26idSite%3D&urls[2]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3D&urls[3]=method%3DSitesManager.getSitesIdFromSiteUrl%26idSite%3D%26url%3Dhttp%3A%2F%2F_url_&token_auth=..." } array(2) { ["global_settings"]=> array(52) { ["revision"]=> string(10) "2015053001" ["last_settings_update"]=> string(10) "1433158134" ["piwik_mode"]=> string(4) "http" ["piwik_url"]=> string(29) "https://_url_" ["piwik_path"]=> string(10) "/analytics" ["piwik_user"]=> string(0) "" ["piwik_token"]=> string(3) "set" ["auto_site_config"]=> string(1) "0" ["default_date"]=> string(9) "yesterday" ["stats_seo"]=> string(1) "0" ["dashboard_widget"]=> string(8) "disabled" ["dashboard_chart"]=> string(1) "1" ["dashboard_seo"]=> string(1) "1" ["toolbar"]=> string(1) "1" ["capability_read_stats"]=> array(5) { ["administrator"]=> string(1) "1" ["editor"]=> string(1) "0" ["author"]=> string(1) "0" ["contributor"]=> string(1) "0" ["subscriber"]=> string(1) "0" } ["perpost_stats"]=> string(1) "0" ["plugin_display_name"]=> string(8) "WP-Piwik" ["piwik_shortcut"]=> string(1) "1" ["shortcodes"]=> string(1) "1" ["track_mode"]=> string(2) "js" ["track_codeposition"]=> string(6) "footer" ["track_noscript"]=> string(1) "0" ["track_nojavascript"]=> string(1) "0" ["proxy_url"]=> string(0) "" ["track_content"]=> string(3) "all" ["track_search"]=> string(1) "0" ["track_404"]=> string(1) "0" ["add_post_annotations"]=> string(1) "0" ["add_customvars_box"]=> string(1) "0" ["add_download_extensions"]=> string(0) "" ["disable_cookies"]=> string(1) "0" ["limit_cookies"]=> string(1) "0" ["limit_cookies_visitor"]=> string(8) "34186669" ["limit_cookies_session"]=> string(4) "1800" ["limit_cookies_referral"]=> string(8) "15778463" ["track_admin"]=> string(1) "0" ["capability_stealth"]=> array(1) { ["administrator"]=> string(1) "1" } ["track_across"]=> string(1) "0" ["track_across_alias"]=> string(1) "0" ["track_feed"]=> string(1) "0" ["track_feed_addcampaign"]=> string(1) "0" ["track_feed_campaign"]=> string(4) "feed" ["cache"]=> string(1) "1" ["disable_timelimit"]=> string(1) "0" ["connection_timeout"]=> string(1) "5" ["disable_ssl_verify"]=> string(1) "0" ["piwik_useragent"]=> string(3) "php" ["piwik_useragent_string"]=> string(8) "WP-Piwik" ["track_datacfasync"]=> string(1) "0" ["track_cdnurl"]=> string(0) "" ["track_cdnurlssl"]=> string(0) "" ["force_protocol"]=> string(8) "disabled" } ["settings"]=> array(6) { ["name"]=> string(0) "" ["site_id"]=> string(0) "" ["noscript_code"]=> string(0) "" ["tracking_code"]=> string(0) "" ["last_tracking_code_update"]=> string(1) "0" ["dashboard_revision"]=> string(1) "0" } }
Can you please open this URL in your browser and post the result here?
https://_url_/?module=API&method=API.getBulkRequest&format=php&urls[0]=method%3DVisitsSummary.getUniqueVisitors%26idSite%3D%26period%3Dday%26date%3Dlast30&urls[1]=method%3DAPI.getPiwikVersion%26idSite%3D&token_auth=...
(Please add your auth token at the end of the URL.)it opens home page. is possible that we do this over email? thanks
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<result>
<error message=”The parameter ‘method’ isn’t set in the Request, and a default value wasn’t provided.”/>
</result>I would prefer to discuss here, because this also may be helpful for other users. If you have to share confidential information, you can send it to webmaster (at) braekling.de in addition, of course.
If this opens your web site’s homepage: Can you please check if the correct Piwik URL is configured? Sounds like the URL field contains your homepage URL instead of your Piwik URL.
Thank you!
Sure, i have just sent you a link on email.
We discuss here.
ThanksThank you.
The URL you tried is erroneous, because the & are replace by &:
https://_url_/?module=API&method=API.getBulkRequest&format=php&urls[0]=...
should the URL look like, but you senthttps://_url_/?module=API&method=API.getBulkRequest&format=php&urls[0]=...
– this is why the parameter “method” isn’t recognized.I tried with a fixed URL which works as expected. So I wonder why your Piwik server answers with a “400 Bad Request”.
The URL you send me & the URL shown by the test script are exactly the same? Can you please send me your full test script output via mail?
Thanks!
yes it is the same. i have just sent you email.
it was working before i did wp-piwik update to version 1.0. Before that everything was working fine.
Just to chime in, I’m having the same issues. Was working perfectly before update now getting: WP-Piwik 1.0.1 was not able to connect to Piwik using your configuration. Check the ?Connect to Piwik? section below.
Using Piwik version 2.13.1
Lil Chris: Do you also get a 400 Bad Request error if you run the test script? If so, can you please try to open the links shown by the testscript in your browser (keep in mind to add your auth token)? If not, please open your own thread with further information (e.g., the test script results).
alexjovicic: Can you please tell me which WP-Piwik version you used before? Did you also try to reset WP-Piwik? I tried to google what 400 can mean in this case, but I also got results about a wrong Piwik URL (piwik.example.com/piwik.php instead of piwik.example.com)… but in your case the URL seems to be correct. Can I try to connect to your Piwik using my local test system and the details you sent me by mail?
Hello, i was on 0.9.9.18 and all worked great. After next update it was messed up. Hoping that next updates will solve the problem.
Yes i will email you details. ThanksEDIT: i did not try to reset Piwik
Can you please try to reset WP-Piwk (not Piwik!) once? (Settings -> WP-Piwik -> Support)
You have to reconfigure WP-Piwik after you run the reset script, but this would solve any issue with messed up configuration details. Just to be sure it’s not caused by this.
Just did. And the same issue: WP-Piwik 1.0.1 konnte sich mit Deiner Konfiguration nicht mit Piwik verbinden. Bitte überprüfe die ?Mit Piwik verbinden?-Sektion unten.
Ok, thank you.
I will have a look at this using the details your send me this evening.
- The topic ‘piwik does not work, error when connecting to script’ is closed to new replies.