0
votes
1answer
44 views

How do I debug an error that a plugin is causing?

I'm having an issue debugging why the plugin I'm creating keeps displaying the error You need to upgrade your database as soon as possible.... The work I've done so far has been on a remote dev site, ...
0
votes
1answer
82 views

Catch own Exceptions

I build some package with my own Exception but when I try to catch a exception I got fatal error: Uncaught exception. This situation is only when method with throw is passed by add_action( 'init', ...
0
votes
1answer
131 views

Getting error of unexpected output during activation

I have seen one plugin named lordlinus business hours When I am trying to install it, I am getting error : The plugin generated 2 characters of unexpected output during activation. If you notice ...
1
vote
1answer
113 views

Two functions utilizing registration_errors filter

I wrote two plugins that utilize the registration_errors filter: add_filter( 'registration_errors', 'process_payment', 10, 3 ); add_filter( 'registration_errors', 'add_user_to_SF', 10, 3 ); When ...
2
votes
1answer
390 views

WP_Error handles errors, but how can I show success with a message?

My script accesses an api to populate posts. I can add any errors to the WP_Error class, but can I add success messages to a global variable?
2
votes
1answer
857 views

wordpress plugin error handling

I am looking for a way to handle errors for a custom post type with its own custom fields. This is all part of a plugin I'm writing, however, after extensive research the only way I found is through ...
3
votes
1answer
67 views

why don't I get error messages in admin when developing?

I am curious as to why my screen goes completely blank when an error is present in my code. This only happens to me when it is an admin function. No warnings, no syntax error messages, nothing. Just ...
0
votes
2answers
143 views

Need Help Determining Where Header Error is Happening

I am currently writing a plugin that contains a report based on a mysql query. I would like to export this query information to CSV. Simple enough, I've done it many times outside of WordPress. I'm ...
1
vote
1answer
624 views

CSV file generation failing

I'm using a plugin for a client (that i modified to some degree) that creates and maintains a database of organization members (using a new wp table to do so). There is a nice feature that does a csv ...
1
vote
1answer
154 views

Force plugin to fail activation

I'm writing a plugin that will be using custom fields added by a theme. Because of this, it would be ideal if my plugin not be able to activate should these fields not exist. How do I go about ...
6
votes
3answers
1k views

How should one implement add_settings_error on custom menu pages?

The Professional WordPress Plugin Development book explains in detail how to properly use the Settings API, and it also demonstrates how to add Menus and Submenus, but unfortunately it doesn't provide ...
0
votes
1answer
205 views

“Rendering of admin template [path to template] failed”

I've got a php script that is called when the user is editing the category. However, although the page renders fine for the most part, at the point where the image upload button should appear, I'm ...
0
votes
2answers
115 views

Is there any way to pass messages from a script to a redirect target in a hidden fashion?

I'm trying to pass error messages or regular messages from a page that processes a form post request to the page it then redirects to (after processing). Since i want to get rid of the POST request ...
1
vote
2answers
217 views

How can I gracefully escape an error condition?

My plugin is freezing the execution of the page at the point where it calls the functions below. I have two problems... 1) How can I recode the function so that if there is an error, the plugin does ...
4
votes
1answer
811 views

Prevent notice and warnings in error_reporting?

When turning opn WP_DEBUG and WP_DEBUG_DISPLAY, I get tons of warnings and notices. I have tried to remove the warnings by doing a @ini_set('error_reporting', 1) to only show E_ERROR, but I still get ...