Replies: 0
Hi,
I have tried this problem in an other tread were Piwik was confused with WP Piwik, so I start this new one.
My Piwik installation works fine, but my WP-Piwik isn’t well. WP Piwik doesn’t connect to Piwik. I have modified my htaccess. I have also tried without the htaccess at all. I have deactivated all my other WP plugins. I have asked my ISP about local host and the answer me that the MySql server is an other server than the one that is running my WordPress installation. My ISP encourages me to talk to the plugin author of WP-Piwik.
I have Piwik installed in a folder in the same public_html as my WordPress installation. I am able to connect WordPress to other folders with index.php files in them, but WP-Piwik is rejected when trying to access Piwik.
I have thought that running Piwik in the same public_html as WordPress is similar to running two WordPress-installations in the same public_html and I discovered this writing:
Should I or my ISP create a so called symbolic link between something in my WordPress installation and something in the Piwik installation, for making it possible fot WP-Piwik to connect to Piwik?
This is my debug log:
WP-Piwik 1.0.17
Mode: http
Test 1/3: global.getPiwikVersion
bool(false)
array(2) {
[0]=>
string(234) "HTTP/1.1 403 Forbidden
Date: Thu, 21 Sep 2017 20:56:55 GMT
Server: Apache
Vary: accept-language,accept-charset
Accept-Ranges: bytes
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Content-Language: en
"
[1]=>
string(149) "http://exp.silent.se/analytics/?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(234) "HTTP/1.1 403 Forbidden
Date: Thu, 21 Sep 2017 20:56:55 GMT
Server: Apache
Vary: accept-language,accept-charset
Accept-Ranges: bytes
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Content-Language: en
"
[1]=>
string(226) "http://exp.silent.se/analytics/?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(234) "HTTP/1.1 403 Forbidden
Date: Thu, 21 Sep 2017 20:56:55 GMT
Server: Apache
Vary: accept-language,accept-charset
Accept-Ranges: bytes
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Content-Language: en
"
[1]=>
string(330) "http://exp.silent.se/analytics/?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%2Fexp.silent.se&token_auth=..."
}
array(2) {
["global_settings"]=>
array(63) {
["revision"]=>
string(10) "2017080901"
["last_settings_update"]=>
string(10) "1506027402"
["piwik_mode"]=>
string(4) "http"
["piwik_url"]=>
string(31) "http://exp.silent.se/analytics/"
["piwik_path"]=>
string(40) "http://exp.silent.se/analytics/index.php"
["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"]=>
array(0) {
}
["add_customvars_box"]=>
string(1) "0"
["add_download_extensions"]=>
string(0) ""
["set_download_extensions"]=>
string(0) ""
["set_link_classes"]=>
string(0) ""
["set_download_classes"]=>
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_crossdomain_linking"]=>
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"
["track_user_id"]=>
string(8) "disabled"
["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"
["disable_ssl_verify_host"]=>
string(1) "0"
["piwik_useragent"]=>
string(3) "php"
["piwik_useragent_string"]=>
string(8) "WP-Piwik"
["dnsprefetch"]=>
string(1) "0"
["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"
}
}
I would appreciate any help in how to solve this problem
Tomas Risberg