WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] Subdomains not loading! (10 posts)

  1. Denis Lam
    Member
    Posted 1 year ago #

    I am running WP MU on Hostgator. After installing Piwik with this WP plugin, my subdomain network sites won't load (circle keeps spinning in the browser).

    In my cpanel, I see that a few (2 to 3) extra processes are created on my server (running the WP root index.php). And if I keep stop and refreshing my subdomain, more and more processes are created which eventually will create a 500 error. Not sure if this is related to Piwik but any suggestions?

    http://wordpress.org/extend/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Please have a look at the plugins FAQ regarding Hostgator and see the following thread also: http://wordpress.org/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://wordpress.org/search/wp-piwik+hostgator?forums=1

  3. Denis Lam
    Member
    Posted 1 year ago #

    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...

  4. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    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)?

  5. Denis Lam
    Member
    Posted 1 year ago #

    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

  6. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    I identified a deadlock which at least may cause the "freezing".

    If you like, you can try the current development version:
    http://downloads.wordpress.org/plugin/wp-piwik.zip

  8. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Please try 0.9.8.1 (should appear in a few minutes).

  9. Denis Lam
    Member
    Posted 1 year ago #

    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 :)

  10. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Great, nice to hear. Thanks for your feedback!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.