Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All Websites is a blank page #5102

Closed
anonymous-matomo-user opened this issue May 6, 2014 · 10 comments
Closed

All Websites is a blank page #5102

anonymous-matomo-user opened this issue May 6, 2014 · 10 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@anonymous-matomo-user
Copy link

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-matomo-user
Copy link
Author

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.

@tsteur
Copy link
Member

tsteur commented May 6, 2014

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-matomo-user
Copy link
Author

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-matomo-user
Copy link
Author

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>

@tsteur
Copy link
Member

tsteur commented May 8, 2014

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-matomo-user
Copy link
Author

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.

@mattab
Copy link
Member

mattab commented May 9, 2014

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-matomo-user
Copy link
Author

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 matomo-org/matomo-nginx#19

Thanks again for helping solve this so fast!

@tsteur
Copy link
Member

tsteur commented May 9, 2014

You're welcome!

@tsteur
Copy link
Member

tsteur commented May 9, 2014

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants