The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
402 views

(updated) How to add AJAX error handling to a (fully) custom registration form?

Update 2.1: Okay, after messing around with this some more I remembered that I hadn't included the JS file which was causing the white screen, OOPS! ;) Now the form does not submit the data nor send ...
2
votes
0answers
111 views

Showing WP_Error message with admin_notice action hook

I have just get an answer to one of my question but the problem is I want to print an error when every user will insert tags of more than two words through post-new.php with admin_notice action hook. ...
1
vote
0answers
16 views

When to use Exceptions vs Error Objects vs just plain false/null

I'm in the process of writing a plugin and I'm trying to gauge when to use different approaches of handling errors. There are three methods I'm considering: Throwing an Exception (custom class) ...
0
votes
0answers
18 views

Showing error/update mesasge after redirect

I am trying to show error or success message based on some action. This message shows if I do not redirect to another page, but not when i redirect to another page. if($status === true) { ...
0
votes
0answers
18 views

Logging error messages with error_log() and WP_DEBUG_LOG

If I use error_log( 'foo' ) in WordPress and WP_DEBUG_LOG is set to false, where does "foo" get logged to? Note that with WP_DEBUG_LOG set to true, "foo" is logged in wp-content/debug.log.
0
votes
0answers
44 views

Wordpress Admin custom error notice

I followed some advice around here in order to display custom error notices after clicking the update button in the admin area (here it is related to a custom post type, i don't know if it's ...
0
votes
0answers
23 views

Should I be worried about this error when enqueueing an external JS file? Everything still works

I enqueued a JS file that contains the below code. I can tell that the JS file is working correctly and being used. However, the browser console gives me an error Uncaught SyntaxError: Unexpected ...
0
votes
0answers
71 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 = ...
0
votes
0answers
271 views

How to pass error message from plugin function to admin_notices

I am creating a WordPress plugin that uses the save_post action hook, and need to output any error messages to the screen (I am using the admin_notices hook). The setup is like this: function ...
0
votes
0answers
204 views

I can't upload files/images to my wordpess wp-admin

I am working on a domain but my problem is after I install wordpress theme as I try to upload images for the slider and logo this error show - The uploaded file could not be moved to ...