-
Notifications
You must be signed in to change notification settings - Fork 1.9k
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
"CodeIgniter\Debug\ExceptionHandler::handle" show error condition add "CI_DEBUG" suggest #9120
Comments
Thank you for reporting! I don't understand your recommendation. What is the Internal Server Error in "ajax"? |
I think "system/Debug/ExceptionHandler.php" works. What is the exact error? |
By the way, for what do you use |
Because sometimes online debugging. If there is an error in the code itself, $data should have an error message instead of an empty value. // development.php
defined('CI_DEBUG') || define('CI_DEBUG', true);
// production.php
defined('CI_DEBUG') || define('CI_DEBUG', false); What is its function and purpose? So it doesn't matter whether I customize the environment mode or not. |
My question is, what is the Internal Server Error in "ajax"? |
|
Yes. CodeIgniter4/system/Debug/ExceptionHandler.php Lines 78 to 83 in f2e560f
At least, it matches the description in the user guide.
|
@codeigniter4/core-team
|
Thank you very much for your patience in replying. |
Your suggestion has a valid point. Therefore I think one of the following would be better.
|
I sent PR #9144 |
Closed by #9144 in v4.6. |
in a custom environment. And the environment name is not "development" or "testing".
has Internal Server Error in "ajax", not working.
It is recommended to change the "system/Debug/ExceptionHandler.php" code:
== source code ===
== Modify to ==
The text was updated successfully, but these errors were encountered: