We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [error-handling]

The tag has no usage guidance.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
638 views

Wordpress showing install screen after max_questions error

I am working in a PHO environment in Heroku with ClearDB. At some point (really low), I get this error: WordPress database error User 'XX' has exceeded the 'max_questions' resource (current value: ...
1
vote
0answers
17 views

Handle new created WP_Error

Is it possible to set up a global function for catching new created WP_Error instances? I would like to catch all of them and send error logs to Sentry
0
votes
1answer
13 views

How can error pages be customized

Googling this comes up only with information about customizing 404 pages of course, I can't seem to find a way to customize this: I'm using a plugin that allows users to submit stuff in the frontend, ...
0
votes
0answers
43 views

Modifying server's response to API endpoint

I have a Javascript application in the front-end, with Wordpress in the back. The index.php of Wordpress serves the application if user is logged in, else redirects to login page. My application ...
0
votes
0answers
58 views

Error handling for wpdb error - displaying an error message to the user

I want to display an error message to a user when a php POST form fails. The form lets a user create a new team on my site. If the team name is not unique, the query fails. I want to display a generic ...
0
votes
1answer
107 views

Show error messages to a user when database insert fails

I want to show a generic error message to a user when a database query fails on my site. I'm new to wordpress and I'm not sure how to go about it. I have the following function in my functions.php ...
0
votes
1answer
544 views

Custom form validation

I have created a basic form which can be POST to admin-post.php and also submitted via an AJAX call to admin-ajax.php. Both submissions work correctly, use the nonce for a little extra security, and I ...
0
votes
1answer
1k views

ERROR: Cookies are blocked due to unexpected output - ultimate solution

I know this problem can happen but I need ultimate solution. My main error is: ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support ...
0
votes
1answer
25 views

How to send logs to plugin owner for a plugin?

I am developing a plugin(that is already on WordPress) and wanted to know that how to do set up to get error logs from customers? Also, any idea on how to omit logs that should only be shown to ...
0
votes
1answer
63 views

Preserve old values on error in setting API

I am trying to preserve old value of form when it fails the validation defined in sanitize callback of register_setting. But it does not do so, instead it save the default values register_setting('...
0
votes
0answers
171 views

WordPress displays 500 error on PHP errors

For some reason WP is showing a generic 500 Internal Server Error page when I have PHP errors in my code. I have set WP_DEBUG to true, and the following settings in my php.ini file: error_reporting = ...