Navigation Menu

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

Exceptions, errors shouldn't log as HTML in PHP log #7813

Open
Globulopolis opened this issue May 2, 2015 · 0 comments
Open

Exceptions, errors shouldn't log as HTML in PHP log #7813

Globulopolis opened this issue May 2, 2015 · 0 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@Globulopolis
Copy link
Contributor

Hi!
Sometimes Piwik report about error as HTML.
Example from php error log:

[29-Apr-2015 20:23:56 UTC] Error in Piwik (tracker): Error query: SQLSTATE[HY000]: General error: 145 Table '.\counters\piwik_log_visit' is marked as crashed and should be repaired                                 In query: SHOW COLUMNS FROM `piwik_log_visit`                                 Parameters: array ( )

`[30-Apr-2015 17:39:30 UTC] Error in Piwik: <!DOCTYPE html> <html> <head>   <meta charset="utf-8">  <title>Piwik &rsaquo; Error</title>     <link rel="shortcut icon" href="misc/user/favicon.png" />   <link rel="stylesheet" type="text/css" href="plugins/Morpheus/stylesheets/simple_structure.css" /> </head> <body id="simple">  <div class="logo">   <img title="Piwik" alt="Piwik" src="/plugins/Morpheus/images/logo-header.png"/>     <br/>   <a href='http://piwik.org/'>free/libre analytics platform</a> </div>  <div class="box">     <div class="header">        <h1>An error occurred</h1>  </div>      <div class="content"><h2>Your Piwik version 2.13.0 is up to date.</h2>                     <p><a href="javascript:window.history.back();">Go Back</a> | <a href="index.php">Go to Piwik</a> |                        <a href="index.php?module=Login">Login</a></p>  <ul>                             <li><a rel="noreferrer" target="_blank" href="http://piwik.org">Piwik.org homepage</a></li>                             <li><a rel="noreferrer" target="_blank" href="http://piwik.org/faq/">Piwik Frequently Asked Questions</a></li>                             <li><a rel="noreferrer" target="_blank" href="http://piwik.org/docs/">Piwik Documentation</a></li>                             <li><a rel="noreferrer" target="_blank" href="http://forum.piwik.org/">Piwik Forums</a></li>                             <li><a rel="noreferrer" target="_blank" href="http://demo.piwik.org">Piwik Online Demo</a></li>                             </ul>    </div>      <div class="footer">         <a href="index.php">&laquo; Back to Piwik</a>     </div>  </div> </body> </html>  

PS! Last error raised when update from 2.12.0 to latest was running. It's not timeout or something like this, it's just a blank screen. I press F5 and after that Piwik ask me about DB update.

@tsteur tsteur added the Bug For errors / faults / flaws / inconsistencies etc. label May 5, 2015
@tsteur tsteur added this to the Mid term milestone May 5, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
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