Not getting the site id? -> WP-Piwik ERROR: Tracking code not availbale
-
OK, seemingly i need some help, too.
But first of all let me say thank you for this great plugin!I recently switched servers (which means, only the IP changed).
I get Piwik to run under my main domain, but not for the second (well, actually it works. What’s not working is WP-Piwik). Piwik itself has been freshly installed, dumping all old statistics. The deifference to the previous installation is that piwik now runs under the main domain instead of using just the IP.
Note that every domain is hosted on the same server, using virtual hosts.So i tried several times to reset WP-Piwik, (Piwik itself working fine, see below) but with no effect whatsoever.
(i also tried with and without ssl peer verification, and any other option that just maybe somewhat related)Here are the details:
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
cURL ist verfügbar. (-> available) allow_url_fopen ist aktiviert. (-> active) <blockquote>*** Test 1/2: SitesManager.getSitesWithAtLeastViewAccess *** Using: cURL SSL peer verification: enabled User Agent: WP-Piwik Call: https://www.firstdomain.de/PiWk/?module=API&method=SitesManager.getSitesWithAtLeastViewAccess&format=XML&token_auth= + TOKEN Result: HTTP/1.1 200 OK Date: Fri, 29 Aug 2014 09:23:54 GMT Server: Apache/2.2.22 (Debian) X-Powered-By: PHP/5 Strict-Transport-Security: max-age=15768000 Vary: Accept-Encoding Content-Length: 565 Content-Type: text/xml; charset=utf-8 <?xml version="1.0" encoding="utf-8" ?> <result> <row> <idsite>2</idsite> <name>Blauer Schwan</name> <main_url>https://www.seconddomain.de</main_url> <ts_created>2014-08-05 00:00:00</ts_created> <ecommerce>0</ecommerce> <sitesearch>1</sitesearch> <sitesearch_keyword_parameters /> <sitesearch_category_parameters /> <timezone>Europe/Berlin</timezone> <currency>EUR</currency> <excluded_ips /> <excluded_parameters /> <excluded_user_agents /> <group /> <type>website</type> <keep_url_fragment>0</keep_url_fragment> </row> </result> Time: 0.07s *** Test 2/2: SitesManager.getSitesIdFromSiteUrl *** Using: cURL SSL peer verification: enabled User Agent: WP-Piwik Call: https://www.firstdomain.de/PiWk/?module=API&method=SitesManager.getSitesIdFromSiteUrl&url=https%3A%2F%2Fwww.seconddomain.de%2Fblog&format=XML&token_auth= + TOKEN Result: HTTP/1.1 200 OK Date: Fri, 29 Aug 2014 09:23:54 GMT Server: Apache/2.2.22 (Debian) X-Powered-By: PHP/5 Strict-Transport-Security: max-age=15768000 Vary: Accept-Encoding Content-Length: 50 Content-Type: text/xml; charset=utf-8 <?xml version="1.0" encoding="utf-8" ?> <result /> Time: 0.07s
So, obviously the second test didn’t work – as for Piwik, i just put in the root urls (both https and http) of seconddomain.de. However i don’t know how the detection is done, so here maybe an issue hosting all sites on the same server.
However, in the settings tab, the correct site is displayed.If i go for the detailed configuration, the correct site is *not* selected, obviously:
– Blauer Schwan https://www.seconddomain.de/blog Create Piwik site
I also tried to let WP-Piwik try to create a site, resulting in displaying a site-id of 1, but doing nothing in Piwik itself.
The user for this site (in piwik) has administrative rights for the site. The auth token is correct (and piwik works fine in the static html pages) – but whatever i tried, “WP-Piwik ERROR: Tracking code not availbale” keeps showing up.
So i’m running out of ideas, and hope i’ll find help here. ??
- The topic ‘Not getting the site id? -> WP-Piwik ERROR: Tracking code not availbale’ is closed to new replies.