• Hey,
    when I installed WP-Piwik and entered all informations (url, authToken) it says that it could not connect with Piwik with my configuration.
    Piwik, WordPress and all plugins are up to date.
    Error: “WP-Piwik 1.0.5 konnte sich mit Deiner Konfiguration nicht mit Piwik verbinden. Bitte überprüfe die »Mit Piwik verbinden«-Sektion unten.”

    https://wordpress.org/plugins/wp-piwik/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author braekling

    (@braekling)

    Can you please run the test script? See Settings -> WP-Piwik -> Support tab. This may give further information.

    Thread Starter KleinMuffin

    (@kleinmuffin)

    Plugin Author braekling

    (@braekling)

    The log file shows that there is no outgoing connection to Piwik.

    1. You are using SSL (https) to connect to Piwik… is this a valid certificate? Try to disable SSL peer verification (Expert settings) if your are not sure.

    2. Try to use fopen instead of cURL if possible.

    3. If you are using a firewall or a similar solution (mod_security), you should whitelist your Piwik connection. Contact your web hosts’s support for more information.

    Thread Starter KleinMuffin

    (@kleinmuffin)

    I have a SSL certificate from Cloudflare but I disabled the SSL peer verification. Also I’m using fopen instead of cURL now.
    The firewall for this website is deactivated.

    test script: http://hastebin.com/wawigimolu.log

    I have the same problem.
    Here is the test script.
    I have tried several things from the expert mode already.
    – clear cache
    – fopen
    – and other settings
    No success so far.
    Any idea what’s going wrong? Thanks!
    Michael

    Plugin Author braekling

    (@braekling)

    Both testscripts show that WP-Piwik is not able or allowed to send its request.

    So, mod_security is deactivated, too? If you are using mod_security, you should whitelist your Piwik server. Also check your logfiles, maybe they give a hint.

    Thanks for your support.
    Still no success. mod_security is deactivated.
    I’m looking at my server log files but I have no clue what to look for.

    For your information, I have been using this plugin for 2 years now and it always worked. I don’t know when this problem started so I don’t know if it came with an update of your plugin or any other update.

    Right now I have manually inserted the tracking code but I would of course prefer that the plugin works automatically.

    Michael

    Hi All,

    I have the same problem and have run the test script and get the following:-

    WP-Piwik 1.0.5
    Mode: php
    
    Test 1/3: global.getPiwikVersion
    
    array(2) {
      ["result"]=>
      string(5) "error"
      ["message"]=>
      string(44) "Class Piwik\FrontController does not exists."
    }
    
    bool(false)
    
    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
    
    array(2) {
      ["result"]=>
      string(5) "error"
      ["message"]=>
      string(44) "Class Piwik\FrontController does not exists."
    }
    
    bool(false)
    
    Test 3/3: SitesManager.getSitesIdFromSiteUrl
    
    array(2) {
      ["result"]=>
      string(5) "error"
      ["message"]=>
      string(44) "Class Piwik\FrontController does not exists."
    }
    
    bool(false)
    
    array(2) {
      ["global_settings"]=>
      array(57) {
        ["revision"]=>
        string(10) "2015101201"
        ["last_settings_update"]=>
        string(10) "1450518830"
        ["piwik_mode"]=>
        string(3) "php"
        ["piwik_url"]=>
        string(49) "http://www.londonetparis.com/londonetparis/piwik/"
        ["piwik_path"]=>
        string(48) "http://www.londonetparis.com/londonetparis/piwik"
        ["piwik_user"]=>
        string(8) "pi-piwik"
        ["piwik_token"]=>
        string(3) "set"
        ["auto_site_config"]=>
        string(1) "1"
        ["default_date"]=>
        string(9) "yesterday"
        ["stats_seo"]=>
        string(1) "0"
        ["dashboard_widget"]=>
        string(8) "disabled"
        ["dashboard_chart"]=>
        string(1) "0"
        ["dashboard_seo"]=>
        string(1) "0"
        ["toolbar"]=>
        string(1) "0"
        ["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) "0"
        ["shortcodes"]=>
        string(1) "0"
        ["track_mode"]=>
        string(7) "default"
        ["track_codeposition"]=>
        string(6) "footer"
        ["track_noscript"]=>
        string(1) "0"
        ["track_nojavascript"]=>
        string(1) "0"
        ["proxy_url"]=>
        string(0) ""
        ["track_content"]=>
        string(8) "disabled"
        ["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) ""
        ["set_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(0) {
        }
        ["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"
        ["track_heartbeat"]=>
        string(1) "0"
        ["cache"]=>
        string(1) "1"
        ["http_connection"]=>
        string(4) "curl"
        ["http_method"]=>
        string(4) "post"
        ["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"
        ["update_notice"]=>
        string(7) "enabled"
      }
      ["settings"]=>
      array(6) {
        ["name"]=>
        string(0) ""
        ["site_id"]=>
        string(1) "e"
        ["noscript_code"]=>
        string(0) ""
        ["tracking_code"]=>
        string(85) "<!-- {"result":"error","message":"Class Piwik\\FrontController does not exists."} -->"
        ["last_tracking_code_update"]=>
        string(10) "1450518830"
        ["dashboard_revision"]=>
        string(1) "0"
      }
    }

    Anyone have any suggestions?

    Thanks
    Chris

    Test 1/3: global.getPiwikVersion

    array(2) {
    [“result”]=>
    string(5) “error”
    [“message”]=>
    string(44) “Class Piwik\FrontController does not exists.”
    }

    I’m getting the same results but also a message that the mysql driver is not installed

    Just had a quick online session with my webhost, they did something to the php version and all working fine now

    Thanks, maybe I’ll drop them an email and see if they can update it.

    I maybe have narrowed down the/my problem.
    My Piwik was running on https. I have now just changed my provider and while I wasn’t on https yet, the connection problem was gone. I have now switched to https on the new server and after that I again couldn’t connect anymore.

    Plugin Author braekling

    (@braekling)

    The “not exist” messages may also be caused by a wrong Piwik path. (Also keep the PHP safe mode in mind… Is WP-Piwik allowed to include Piwik components?)

    Anyway, this problem is different from the initial problem. The initial problem occurs because WP-Piwik’s HTTP (=REST API) requests to Piwik are blocked by some reason.

    I have the same problem ,too.
    I have tried clear cache and reset WP-Piwik,
    but WP-Piwik still show error message:
    WP-Piwik 1.0.6 was not able to connect to Piwik using your configuration. During connection the following error occured:
    Operation timed out after 5008 milliseconds with 0 bytes received.

    Run the test script and get the following

    WP-Piwik 1.0.6
    Mode: http
    
    Test 1/3: global.getPiwikVersion
    
    bool(false)
    
    array(2) {
      [0]=>
      string(0) ""
      [1]=>
      string(144) "http://192.168.6.16/piwik/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&token_auth=..."
    }
    
    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
    
    bool(false)
    
    array(2) {
      [0]=>
      string(0) ""
      [1]=>
      string(221) "http://192.168.6.16/piwik/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&urls[1]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3Dn%2Fa&token_auth=..."
    }
    
    Test 3/3: SitesManager.getSitesIdFromSiteUrl
    
    bool(false)
    
    array(2) {
      [0]=>
      string(0) ""
      [1]=>
      string(336) "http://192.168.6.16/piwik/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&urls[1]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3Dn%2Fa&urls[2]=method%3DSitesManager.getSitesIdFromSiteUrl%26idSite%3Dn%2Fa%26url%3Dhttp%3A%2F%2F192.168.6.16%2Fwordpress&token_auth=..."
    }
    
    array(2) {
      ["global_settings"]=>
      array(57) {
        ["revision"]=>
        string(10) "2016010901"
        ["last_settings_update"]=>
        string(10) "1456296132"
        ["piwik_mode"]=>
        string(4) "http"
        ["piwik_url"]=>
        string(26) "http://192.168.6.16/piwik/"
        ["piwik_path"]=>
        string(0) ""
        ["piwik_user"]=>
        string(0) ""
        ["piwik_token"]=>
        string(3) "set"
        ["auto_site_config"]=>
        string(1) "1"
        ["default_date"]=>
        string(9) "yesterday"
        ["stats_seo"]=>
        string(1) "0"
        ["dashboard_widget"]=>
        string(8) "disabled"
        ["dashboard_chart"]=>
        string(1) "0"
        ["dashboard_seo"]=>
        string(1) "0"
        ["toolbar"]=>
        string(1) "0"
        ["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) "0"
        ["shortcodes"]=>
        string(1) "0"
        ["track_mode"]=>
        string(8) "disabled"
        ["track_codeposition"]=>
        string(6) "footer"
        ["track_noscript"]=>
        string(1) "0"
        ["track_nojavascript"]=>
        string(1) "0"
        ["proxy_url"]=>
        string(0) ""
        ["track_content"]=>
        string(8) "disabled"
        ["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) ""
        ["set_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(0) {
        }
        ["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"
        ["track_heartbeat"]=>
        string(1) "0"
        ["cache"]=>
        string(1) "1"
        ["http_connection"]=>
        string(4) "curl"
        ["http_method"]=>
        string(4) "post"
        ["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"
        ["update_notice"]=>
        string(7) "enabled"
      }
      ["settings"]=>
      array(6) {
        ["name"]=>
        string(0) ""
        ["site_id"]=>
        string(3) "n/a"
        ["noscript_code"]=>
        string(0) ""
        ["tracking_code"]=>
        string(0) ""
        ["last_tracking_code_update"]=>
        string(1) "0"
        ["dashboard_revision"]=>
        string(1) "0"
      }
    }

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘WP-Piwik do not connect’ is closed to new replies.