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

Add Help links in "Oops, there was a problem during the request" message #9686

Closed
mattab opened this issue Feb 3, 2016 · 5 comments
Closed
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Feb 3, 2016

Proposal

oops

Proposed code

Oops… there was a problem during the request. Maybe the server had a temporary issue, or maybe you requested a report with too much data. Please try again. If this error occurs repeatedly please contact your Piwik administrator for assistance.

  <br /><br />
Need more help? 
<a href="https://piwik.org/faq/troubleshooting/faq_19489/">FAQ</a> – 
<a href="http://forum.piwik.org/">Community Help</a> – 
<a href="https://piwik.pro/?campaigns_params_here">Professional Help</a>.

Notes

  • by default the links in the error notification are maybe not underline, it would increase usability to add the underline as in screenshot
  • there are several places in core/plugins where the error message is crafted so code needs to be modified in a few places (MultiSites, CoreHome, Dashboard)
@mattab mattab added this to the 2.16.0 milestone Feb 3, 2016
@tsteur
Copy link
Member

tsteur commented Feb 3, 2016

Where are links supposed to go to? (Just pointing to Piwik PRO website could be maybe improved, maybe a page that shows what kinda options there are re help)

@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Feb 3, 2016
@dev-101
Copy link

dev-101 commented Feb 8, 2016

Instead of this approach, Piwik devs should really consider serializing all widgets ajax requests, instead of overloading servers with too many parallel connections. This is not an issue on faster ones, but on budget servers and entry-level shared hosting environments is annoying as hell. I opened this years ago, back when old tracker was used, but it was closed as it could not be reproduced. The main problem is that all widgets load data at the same time, so timeouts occur when server cannot keep up or small timeout is used (sometimes we cannot change this). Again, leaving option in Admin to load widgets in serialized fashion would prevent this from ever happening.

@tsteur
Copy link
Member

tsteur commented Feb 10, 2016

Again, leaving option in Admin to load widgets in serialized fashion would prevent this from ever happening.

Not sure what you mean here?

It should be quite fast even on budget server as long as pre-archiving is enabled and browser-archiving disabled. Even on a kinda budget server. If it is still slow on a budget server with configured pre-archiving, the server is simply too small for the Piwik it is handling. With pre-archived all data is pretty much cached and to retrieve data server is only doing some "quick" lookups.

@dev-101
Copy link

dev-101 commented Feb 12, 2016

Hi tseur,

well, all widgets create requests at the same time, which does pose a problem when limited concurrent connections are in effect, or RAM/CPU constraints are hit, and that creates timeout errors because server cannot serve all the requests.

In the meantime, I have done some optimizations (increased concurrent processes limit, piwik's mysql recommended performance tweaks and raised PHP memory to the max), so this has apparently fixed the problem.

But, I have root access in this case, in shared hosting accounts that is not possible, and there are various levels of low / cheap / budget.

If widgets could be loaded one-by-one, that is, wait until first completes loading, then trigger next, then next until last one loads would be ideal. Or, at least add some preset delays before each one starts querying data from the server, to leverage the load.

@tsteur
Copy link
Member

tsteur commented Feb 12, 2016

If widgets could be loaded one-by-one, that is, wait until first completes loading, then trigger next, then next until last one loads would be ideal.

We'd need like a setting for it or detect if an instance is "slow" somehow as for most instances servers are possibly fast enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants