Please have a look at the plugins FAQ regarding Hostgator and see the following thread also: http://ww.wp.xz.cn/support/topic/plugin-wp-piwik-piwik-did-not-answer-help?replies=25
Did you try to set a user agent to be used by WP-Piwik?
There are different threads regarding Hostgator:
http://ww.wp.xz.cn/search/wp-piwik+hostgator?forums=1
I have read both threads.
I have tried…
– Disable SSL peer verification:
– Change user agent to custom WP-Piwik
– use avoid mod_security
Subdomains on my WP MU network still won’t load.
When I tried using Piwiki path (API, beta) instead of the REST API, I actually get this error:
Notice: Undefined index: show_breadcrumbs in /home/xxx/public_html/wp-content/themes/xxx/functions.php on line 1315
Notice: Undefined offset: 10 in /home/xxx/public_html/wp-content/plugins/wpmu-dev-facebook-addon/wpmu-dev-facebook-addon.php on line 44
Notice: Undefined index: id in /home/xxx/public_html/wp-content/plugins/easy-fancybox/easy-fancybox.php on line 351
The last notice actually repeats many many times.
What’s interesting though is that with the Beta API the subdomains actually load – but the first time it loads it shows the HTML code only (weird!). And if I refresh the site, the actually site loads after a slight delay…
Your subdomains are all using the same Piwik URL? Can you compare the Piwik URL shown in the tracking codes?
Does you system allow to access itself via http?
Does the test script work (see Support tab)?
I only have one Piwik Install under my primary domain.com/analytics/ so I guess all my subdomains off that primary domain are using that same Piwik url? I network activated the WP Piwik plugin.
If I use http://domain.com/analytics (REST API) and I enable the plugin, my primary domain works no problem. Only subdomains can’t load.
Here’s the test in the settings support tab..
Test was done with REST API (not BETA). SSL disable. PHP default user agent. Avoid mod security enabled.
*** Test 1/2: SitesManager.getSitesWithAtLeastViewAccess ***
Using: cURL
SSL peer verification: disabled
User Agent:
Call: http://xxx.com/analytics/?module=API&method=SitesManager.getSitesWithAtLeastViewAccess&format=XML&token_auth= + TOKEN
Result:
HTTP/1.1 200 OK
Date: Wed, 13 Feb 2013 14:09:17 GMT
Server: Apache
X-Powered-By: PHP/5.3.15
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
Set-Cookie: PIWIK_SESSID=06bb14225ef987ff049a96627425099e; path=/; HttpOnly
Transfer-Encoding: chunked
Content-Type: text/xml; charset=utf-8
all my network sites’ xml shown here
*** Test 2/2: SitesManager.getSitesIdFromSiteUrl ***
Using: cURL
SSL peer verification: disabled
User Agent:
Call: http://xxx.com/analytics/?module=API&method=SitesManager.getSitesIdFromSiteUrl&url=http%3A%2F%2Fxxx.com&format=XML&token_auth= + TOKEN
Result:
HTTP/1.1 200 OK
Date: Wed, 13 Feb 2013 14:09:18 GMT
Server: Apache
X-Powered-By: PHP/5.3.15
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
Set-Cookie: PIWIK_SESSID=b3d55aa7a226071ac4d6e309f9eff23c; path=/; HttpOnly
Transfer-Encoding: chunked
Content-Type: text/xml; charset=utf-8
all my network sites’ xml shown here
Ok, have a look at the plugins directory:
/debug/testscript_standalone.php
– Open this script and configure Piwik here:
/*****************
* CONFIGURATION *
*****************/
// PIWIK URL, e.g. http://www.website.example/piwik
$strPiwikURL = "";
// PIWIK AUTH TOKEN, e.g. 1234a5cd6789e0a12345b678cd9012ef
$strPiwikAuthToken = "";
// YOUR BLOG'S URL, e.g. http://www.website.example
$strPiwikYourBlogURL = "";
// User agent
$strUA = ini_get('user_agent');
// SSL peer verification
$bolDisableSSLVer = false;
– Copy the configured script to one of your subdomain’s root directory.
– Run the script.
Maybe this will help us to get behind your issue.
I identified a deadlock which at least may cause the “freezing”.
If you like, you can try the current development version:
http://downloads.wp.xz.cn/plugin/wp-piwik.zip
Please try 0.9.8.1 (should appear in a few minutes).
I think the subdomains are working right now! 🙂 I look forward to 0.9.9 and if there’s any new issues I’ll be sure to report it. Thank you braekling 🙂
Great, nice to hear. Thanks for your feedback!