RiaanPie
Forum Replies Created
-
Forum: Hacks
In reply to: wp_insert_post_data won't update meta and shows white screenThanks for the detailed response, bcworkz. I will try that and revert with feedback. π
Forum: Hacks
In reply to: wp_insert_post_data won't update meta and shows white screenThanks for your response, bcworkz. I turned that on as well as added error_reporting(E_ALL) but I still just see a blank screen.
error_reporting(e_all); add_filter( 'wp_insert_post_data' , 'modify_post_title' , '99', 2 ); function modify_post_title( $data , $postarr ) { if($data['post_type'] == 'pets') { // Get all the email addresses associated with this pet that has sponsored $graciousSponsors = do_shortcode('[cfdb-value form="Untitled" show="Extra2" filter="PetName='.$postarr['post_title'].'"]'); //die ($graciousSponsors." , ".$postarr['ID']." , ".join(", ",explode(", ", $graciousSponsors))); // Now set the custom field's value to the list of email addresses $foobar = join(", ",explode(", ", $graciousSponsors)); update_post_meta ($postarr['ID'], 'sponsor_emails', $foobar); } return $data; }Forum: Hacks
In reply to: wp_insert_post_data won't update meta and shows white screenhaha.. π thanks, I appreciate that.
Forum: Hacks
In reply to: wp_insert_post_data won't update meta and shows white screenThis plugin: http://cfdbplugin.com/
But that’s not where my problem lies.. it’s with an internal WordPress function: wp_insert_post_data.
Forum: Hacks
In reply to: wp_insert_post_data won't update meta and shows white screenAny help here would be appreciated. I am sure the code is right.. but I just end up on a blank page. :/
Forum: Plugins
In reply to: [Contact Form DB] WordPress database error on INSERTI’m not really sure. A user reported it. I have updated to latest version and have not been able to replicate so looksl ike it is fixed. Will post a new thread if I find it again. π
Forum: Plugins
In reply to: [Contact Form DB] WordPress database error on INSERTHi Michael.
Another bug revealed itself. It looks like it has to do with duplicate entries.
WordPress database error Duplicate entry ‘111111111’ for key ‘PRIMARY’ for query INSERT INTO cf7dbplugin_st VALUES …. etc
Could you have a look at this, please? It feels like it’s tied in with the previous issue I raised.
Forum: Plugins
In reply to: [Contact Form DB] WordPress database error on INSERTPleasure. Glad I could help! Amazing plugin. π
Forum: Plugins
In reply to: [Contact Form DB] WordPress database error on INSERTWhat an absolute legend you are Michael! That worked for me. THANK YOU!
It’s strange, but I uninstalled the plugin and removed everything then re-installed it afresh and still the table did not create.Forum: Plugins
In reply to: [Contact Form DB] WordPress database error on INSERTOne more thing to add. The data IS actually saved to the database even though I get those errors.
Forum: Plugins
In reply to: [Contact Form DB] WordPress database error on INSERTThe complete error is this: WordPress database error Table 'wp_cf7dbplugin_st' doesn't exist for query INSERT INTO wp_cf7dbplugin_st VALUES ('1423050752.2563') made by require('C:\Inetpub\vhosts\httpdocs\newsite\wp-blog-header.php'), require_once('C:\Inetpub\vhosts\httpdocs\newsite\wp-includes\template-loader.php'), include('C:\Inetpub\vhosts\httpdocs\newsite\wp-content\themes\mytheme\template-thanksForSponsoring.php'), do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, CFDBShortCodeSavePostData->handleShortcode, do_action_ref_array, call_user_func_array, CF7DBPlugin->saveFormData, CF7DBPlugin->generateSubmitTimeI have turned OFF all generate subtime options I could find. I don’t actually have CF7 installed.. could this be why I am getting errors?!