On one of my sites, I get : "An error occured: Please check URL and auth token."
-
This is strange. It works fine on some sites, but on one of them it gives me the following message on the page where the auth token is inserted : An error occured: Please check URL and auth token. You need at least view access to one site.
It’s particularly strange since this site is part of a multisite installation and I’ve activated WP-Piwik without any problem for two other sites on that network.
I’m running WordPress Multisite 3.5.1 with the most recent version of this plugin.
Here is my info from the test script. All I removed from the code pasted below is the piwik session IDs, since I’m not sure if I should post that publicly. It’s only the site with id 4 that’s not working :
*** Test 1/2: SitesManager.getSitesWithAtLeastViewAccess *** Using: cURL SSL peer verification: enabled User Agent: Call: analytics.steveb.koumbit.org/?module=API&method=SitesManager.getSitesWithAtLeastViewAccess&format=XML&token_auth= + TOKEN Result: HTTP/1.1 200 OK Date: Wed, 22 May 2013 21:01:39 GMT Server: Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch mod_ssl/2.2.16 OpenSSL/0.9.8o X-Powered-By: PHP/5.3.3-7+squeeze14 Set-Cookie: PIWIK_SESSID=...; path=/; HttpOnly Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding Content-Length: 1583 Content-Type: text/xml; charset=utf-8 <?xml version="1.0" encoding="utf-8" ?> <result> <row> <idsite>2</idsite> <name>R??visions et Traductions Palindrome</name> <main_url>https://fr.palindromeservices.com</main_url> <ts_created>2013-05-22 20:45:32</ts_created> <ecommerce>0</ecommerce> <sitesearch>0</sitesearch> <sitesearch_keyword_parameters /> <sitesearch_category_parameters /> <timezone>America/Montreal</timezone> <currency>USD</currency> <excluded_ips /> <excluded_parameters /> <excluded_user_agents /> <group /> <keep_url_fragment>0</keep_url_fragment> </row> <row> <idsite>4</idsite> <name>Palindrome Translation and Editing</name> <main_url>https://palindromeservices.com</main_url> <ts_created>2013-05-22 20:49:49</ts_created> <ecommerce>0</ecommerce> <sitesearch>0</sitesearch> <sitesearch_keyword_parameters /> <sitesearch_category_parameters /> <timezone>America/Montreal</timezone> <currency>USD</currency> <excluded_ips /> <excluded_parameters /> <excluded_user_agents /> <group /> <keep_url_fragment>0</keep_url_fragment> </row> <row> <idsite>5</idsite> <name>Climate Justice Montreal</name> <main_url>https://climatejusticemontreal.ca</main_url> <ts_created>2013-05-22 20:56:44</ts_created> <ecommerce>0</ecommerce> <sitesearch>1</sitesearch> <sitesearch_keyword_parameters /> <sitesearch_category_parameters /> <timezone>America/Montreal</timezone> <currency>USD</currency> <excluded_ips /> <excluded_parameters /> <excluded_user_agents /> <group /> <keep_url_fragment>0</keep_url_fragment> </row> </result> Time: 0.4s *** Test 2/2: SitesManager.getSitesIdFromSiteUrl *** Using: cURL SSL peer verification: enabled User Agent: Call: analytics.steveb.koumbit.org/?module=API&method=SitesManager.getSitesIdFromSiteUrl&url=http%3A%2F%2Fpalindromeservices.com&format=XML&token_auth= + TOKEN Result: HTTP/1.1 200 OK Date: Wed, 22 May 2013 21:01:40 GMT Server: Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch mod_ssl/2.2.16 OpenSSL/0.9.8o X-Powered-By: PHP/5.3.3-7+squeeze14 Set-Cookie: PIWIK_SESSID=...; path=/; HttpOnly Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding Content-Length: 94 Content-Type: text/xml; charset=utf-8 <?xml version="1.0" encoding="utf-8" ?> <result> <row> <idsite>4</idsite> </row> </result> Time: 0.26s
- The topic ‘On one of my sites, I get : "An error occured: Please check URL and auth token."’ is closed to new replies.