Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

All Websites is a blank page #5102

Closed
anonymous-piwik-user opened this Issue · 10 comments

3 participants

Anonymous Piwik user Thomas Steur Matthieu Aubry
Anonymous Piwik user

Like ticket:5038 I have a Piwik site with a blank "All Websites" page.

Not sure if this started after the upgrade to 2.2.0 or just now with the upgrade to 2.2.1.

Anonymous Piwik user

This is how the HTML of the page ends:



<div class="pageWrap" id="multisites">
    <div id="main">
        <div piwik-multisites-dashboard
             class="centerLargeDiv"
             display-revenue-column="true"
             page-size="50"
             show-sparklines="true"
             date-sparkline="2014-04-07,2014-05-06"
             auto-refresh-today-report="300">
        </div>
    </div>
</div>
    </div>

    </body>
</html>

Can also provide a screenshot and any other debugging info as needed.

Thomas Steur
Owner

Hi chris,

which browser are you using? Can you try to delete all files within the 'piwik/tmp/assets' directory? Is it maybe possible to provide us a login for your Piwik instance? View permission should be enough. This would help us debugging this issue. If so, please send us an email to hello@piwik.org and leave a comment here in case it goes into the spam folder

Anonymous Piwik user

Replying to tsteur:

which browser are you using?

It's the same in Firefox 29.0,
Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0
, and Debian Chromium 34.0.1847.132
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36
.

Can you try to delete all files within the 'piwik/tmp/assets' directory?

Yes, that didn't make any difference.

Is it maybe possible to provide us a login for your Piwik instance? View permission should be enough.

I have asked the client this question, I expect it'll be fine.

Anonymous Piwik user

Replying to tsteur:

Is it maybe possible to provide us a login for your Piwik instance?

Have done, sent with these email headers, hope you can find it:

From: Chris Croome <chris@webarchitects.co.uk>
Date: Thu, 8 May 2014 12:55:41 +0100
To: hello@piwik.org
Subject: Account on https://stats.transitionnetwork.org/ to help with ticket #5102
Message-ID: <20140508115541.GD16783@webarchitects.co.uk>
Thomas Steur
Owner

Thx again Chris!

So for other people having the same problem, the issue is the following:

Files to those HTML files were blocked by the webserver:

/plugins/MultiSites/angularjs/dashboard/dashboard.html
/plugins/CoreHome/angularjs/siteselector/siteselector.html?cb=8c07843a982258284632854e69fa9ffd
/plugins/Feedback/angularjs/ratefeature/ratefeature.html?cb=8c07843a982258284632854e69fa9ffd

Please whitelist *.html files within the plugin folder.

Waiting for further feedback, see email.

Anonymous Piwik user

Thanks for debugging this!

The Nginx config for Piwik, which I put together a couple of years ago contains:

## Disallow access to several helper files.
        location ~* \.(?:bat|html?|git|ini|sh|svn[^.]*|txt|tpl|xml)$ {
        return 404;
}

Which is clearly the cause of the problem. This config was copied from the suggested configuration here https://github.com/perusio/piwik-nginx/blob/master/apps/piwik/piwik.conf which contains:

    ## Disallow access to several helper files.
    location ~* \.(?:bat|html?|git|ini|sh|svn[^.]*|txt|tpl|xml)$ {
        return 404;
    }

I have commented out that section of the config and everything is working fine, feel free to close this ticket!

Is there a best practice Nginx config you can suggest?

Thanks again for your help.

Matthieu Aubry
Owner

Hi Chris,

I've made a pull request on the nginx configuration to account for the
HTML files:
https://github.com/perusio/piwik-nginx/pull/19/files

Could you please try this patch and confirm that it works for you? btw
if you can comment on the pull request, that would help too.

Anonymous Piwik user

This matter can also be solved by editing the regex as per https://github.com/perusio/piwik-nginx/pull/19/files

## Disallow access to several helper files.
        location ~* \.(?:bat|git|ini|sh|svn[^.]*|txt|tpl|xml)$ {
        return 404;
}

I can confirm that this solves the problem and have posted a comment here perusio/piwik-nginx#19

Thanks again for helping solve this so fast!

Thomas Steur
Owner

You're welcome!

Thomas Steur
Owner

In 3ba1bdc: refs #5102 display an error message in case we cannot load any angularjs html template

Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #5102 display an error message in case we cannot load any angula…
…rjs html template
3ba1bdc
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.