Back to Forum

Cannot delete custom fields from Meta Boxes admin

Published on: August 17, 2011 at 11:07 pm · By: Anonymous
Author
Topic
#7225

I get the following ajax error when trying to delete a custom field frm the Meta Boxes admin

“NetworkError: 500 Internal Server Error – http://xxxxxxxx.com/wp-admin/admin-ajax.php?action=gd_cpt_meta_delete_field&_ajax_nonce=4647bed1f9”

Viewing 5 replies - 1 through 5 (of 5 total)
Author
Replies
  • #7226

    Can you check your server error logs (php error log) to see what this 500 error is? I have no idea what can be causing this without actual error, since this is working properly on all my websites.

    If you are not sure about error log, check this tutorial about activating it through WP only: http://www.dev4press.com/2011/tutorials/wordpress/practical/wordpress-debug-mode-benefits-and-pitfalls/

    In some cases 500 errors are caused only by the lack of PHP memory. For that you can check this tutorial: http://www.dev4press.com/2011/tutorials/wordpress/practical/increase-php-memory-limit/

    Dev4Press - Premium plugins for WordPress.

  • #7227

    thank you for the quick response! No php errors on the server log. We used the pro debug tool and get no errors there either. Memory seems to be set for more than enough

  • #7228

    500 Error means that there is an error on the server side. The tutorial I suggested has a method of activating in file debug through WordPress directly, because server log can be unavailable. Also, as far as I know, there is no debug plugins for WordPress that can debug AJAX server side execution, and deleting custom fields is done through AJAX.

    I have plugin running on many websites, and there are a lot of users also, and this is the first time that this problem is a reported. Without getting the error I can’t do much.

    Few follow up questions: when do you see 500 internal error? When you click on delete link for the custom field, plugin make an AJAX call to the server, does the result contains 500 or what?

    Dev4Press - Premium plugins for WordPress.

  • #7229

    thanks again for your rapid response. I see the 500 error in my firebug and chrome consoles when I click the delete button. I see it if I check both or either of the boxes in the delete modal box. Modal box stays unchanged and visible and fields are not deleted. It looks like I’m not getting a response and that the post to http://xxxxxxxxxx.com/wp-admin/admin-ajax.php?action=gd_cpt_meta_delete_field&_ajax_nonce=a097ad4a1c is throwing the 500 error.

  • #7230

    Yes, the ajax handler is returning the error. Still, this doesn’t help much, since this error doesn’t mean anything. I need the real error behind it. Deletion code is very simple, and there is nothing in there to cause the error as I can see. 500 most usually happens if PHP doesn’t have enough memory (64MB or more recommended), server is running PHP4 (plugin requires PHP5), you are using old and outdated WordPress (3.0 minimum required, I doubt that this is the case here).

    If all this is OK, than, I need to see the error. As I said previously, you can set up WP debug mode with additional option to save errors into file locally by following this article: http://www.dev4press.com/2011/tutorials/wordpress/practical/wordpress-debug-mode-benefits-and-pitfalls/. Read section: WordPress Error Handling.

    If even that doesn’t give you errors, can you contact your hosting company to see why the server is not logging errors.

    Milan

    Dev4Press - Premium plugins for WordPress.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot delete custom fields from Meta Boxes admin’ is closed to new replies.