-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fatal error / WordPress crash when a 404 is expected. #211
Comments
I think this is by design – in satispress/src/Provider/RequestHandler.php Lines 95 to 97 in 33eaa99
|
@rmpel As @BrianHenryIE mentioned, this is by design when |
Sorry, I seem to have missed reply notifications, and due to workload haven't given this more thought, so I completely missed the reason. I think I will try to find a way to either make SatisPress not know we are in WP_DEBUG (we keep loggin enabled to monitor site health) or live with the fact that a 404 results in a crash. ( And looking at the code, no filters in is_debug_mode, means I/we have to live with it ;P ) Thanks for the replies! |
The code says:
Which suggest a 404 should be sent, however, it is an uncaught exception, resulting in a 500 Internal Server Error
Other than a total refactor, I have no solution for this. (I never used throwable exceptions to generate an HTTP status, so I wouldn't know where to start. I would simply do a
header("HTTP/1.0 404 Not Found", true, 404); exit;
but as said, that would require a total refactor, not just this instance)The text was updated successfully, but these errors were encountered: