I don't know why you are experiencing the problem since I can't duplicate it, but this might help you along.
There are two conditions when this occurs (you can find both in wp-admin/admin-ajax.php). Both of these conditions result from a failure of the function add_meta. If I were you, I'd dig around in the add_meta function (found in wp-admin/includes/post.php). I'd add a bunch of error_log statements to dump out exactly what all the variables contain to see where the failure point is. Specifically, I'd start by dumping the contents of the $metavalue variable and the prepared insert statement. However, just to ensure it's not just a file problem, have you downloaded fresh code from wp.org and replaced all the wp-admin and wp-include files? Chris Jean http://gaarai.com/ @chrisjean Nathan Rice wrote: > Hey guys, quick question that you might be able to answer. I haven't been > able to find an answer to this anywhere else, so... > > I'm trying to add custom fields to new posts. When I choose the key and > enter the value and click "Add Custom Field", I get this error: > > "Please provide a custom field value." > > I did. But to double check, I do it again, providing a cf value. Same error. > > Running WP 2.8.5. > > This started happening right after a server migration, so just to be extra > careful, I've repaired and optimized all my tables from PHPMyAdmin, still no > luck. > > FWIW, I tried using a plugin that saves custom field values during the post > save process and they fail too (All in one SEO pack, for example) so it > seems that the add_post_meta() function is what is failing. > > Also of interest, updating custom fields seems to work fine. I can change > existing custom field values all day long. Which seems to indicate that > update_post_meta() is working just fine. > > Any help would be appreciated. > > Thanks! > > ------------------ > Nathan Rice > WordPress and Web Development > www.nathanrice.net | twitter.com/nathanrice | www.modthemes.com > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers > _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
