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
Commits for review: Add php Error Reporting Functionality to PMA #1207
Conversation
…s script is intended to be used same as common.inc.php, but at the end of each script. Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
… error local & temporary log file. Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
…file usage. Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
…turn first 'X' frames. Send stackhash too. Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
…erver URL. Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
…r 'false' (user warnings) errors). Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
I'm working on the suggestions of @phpmyadmin-bot. Will push those changes fixing the issues soon. |
As I've mentioned before requiring common_error_reporting.inc.php in every file is really bad idea. You should instead hook into Footer class, which is already executed at the end of rendering of every page. |
...I'd probably hook into PMA_Footer::getErrorMessages method. |
|
||
$_REQUEST['exception_type'] = 'php'; | ||
$_REQUEST['send_error_report'] = '1'; | ||
require_once('error_report.php'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should do the error submission asynchronously from the client so that it does not block loading of the page.
And last but not least, please rebase your changes on current master to make ti possible to merge your changes. |
Okay. I will remove the But should I create a separate branch for that development or is it okay to continue pushing commits on top of this branch? |
@nijel : I just realized there'd be a problem in putting the |
It's not the last thing being executed, but I don't see a problem with this as the error would be stored in the session and reported with next request. |
...and you can continue to push commits to this branch. |
Okay, thanks. I will push the suggested changes shortly. |
…reportError()'. Hook it in 'PMA_Footer::getErrorMessages()'. Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
… from all the scripts. Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
…') aysnchronous. Stop infinite auto error reporting loop. Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
@nijel : I've pushed the suggested changes.
Please review above commits. |
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
Still the code is not mergeable, so please rebase it on upstream repository. I'll go through the code right now... |
. '" onclick="PMA_ignorePhpErrors()" style="float: right; margin: 20px;">' | ||
. '<input type="submit" value="' | ||
. __('Ignore All') | ||
. '" onclick="PMA_ignorePhpErrors(false)" style="float: right; margin: 20px;">' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to avoid using inline javascript, rather bind it to the class or element id in the javascript code.
I've created rebasing in a separate branch. See, Pull#1219. Closing this one for now. |
For the next time: You don't have to close the pull request and open new one, it's enough to force pushing branch over existing one. |
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Add php Error Reporting Functionality to PMA.