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

Detect javascript errors #958

Open
spekary opened this issue Apr 15, 2016 · 0 comments
Open

Detect javascript errors #958

spekary opened this issue Apr 15, 2016 · 0 comments
Milestone

Comments

@spekary
Copy link
Member

spekary commented Apr 15, 2016

We should add something like the following to qcubed.js:

window.onerror = function(m,u,l){
jQuery.post("ajax/js_error_log.php",
{ msg: m,
url: u,
line: l,
window: window.location.href });
return true};

Something that would then post the error to PHP for logging and notification. Widgets that rely on javascript will silently fail on a javascript error. They then stop sending data to the server, and you get unexpected results, and it can be a while before realizing that the javascript has failed.

This apparently will not catch syntax errors, but will catch runtime errors.

@spekary spekary added this to the 3.1 Release milestone Apr 15, 2016
@spekary spekary modified the milestones: 3.2 Release, 3.1 Release Mar 19, 2017
@matthiaz matthiaz modified the milestones: 3.2 Release, 5.0 Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants