Support » Plugins and Hacks » Contact Form 7 » [Resolved] 3.9 Breaks CFDB Plugin

[Resolved] 3.9 Breaks CFDB Plugin

  • I’m the author of CFDB which captures CF7 form submissions and saves them to the DB.

    The plugin listens to the wpcf7_before_send_mail hook and pulls the form submission data from the object passed in ($object->posted_data) but “posted_data” no longer appears. The passed in object does have the form definition information, but has none of the form submission data.

    Anyone else relying on wpcf7_before_send_mail to do something with with the data will also have this problem.

    Please advise on how data can be collected in version 3.9. Many sites are rely on both these plugins.

    Thank you.

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Author Takayuki Miyoshi


    Hi Michael,

    Use this instead:

    $submission = WPCF7_Submission::get_instance();
    if ( $submission ) {
    	$posted_data = $submission->get_posted_data();
    Plugin Author Takayuki Miyoshi


    @takayuki Mioyshi

    Maybe its a good idea if you create a short sticky topic here, what people have to do when they run into troubles with the latest version of cf7? So hopefully they look first on the sticky topic and duplicate questions can be reduced. We can also write a FAQ there.

    Maybe some title like:

    IMPORTANT: FAQ CF7 3.9 Common issues.

    Btw. Thanks for the latest update. I love it! Thanks for it:-)


    @takayuki Mioyshi

    $submission = WPCF7_Submission::get_instance();

    if ( $submission ) {
    $posted_data = $submission->get_posted_data();

    NOT WORK!!!!

    CFDB after contact form updated to last version , don’t save any data in DB table and only create new row!

    please help me!!!

    I seriously need a fix here. All our feedback data collection relies on the working combination of “Contact Form 7” and “CFDB”. Please try hard!

    i’m working on it right now

    I just pushed version 2.8.2 to mostly fix the issue. It should appear as an available update shortly.

    I still seem to have a problem. When I click the submit button on my form I do get the data saved and an email sent to me, but the form shows the spinning wait icon and it doesn’t go away. It looks like the form is stuck. I return “true” from my function hooked up to wpcf7_before_send_mail. Any thoughts on what would be causing that?


    i just updated contact form 7 to 3.9 but after that the contact form 7 database extension(CFDB) does not work properly and the submission data does not show and the fields look empty
    please fix this…
    it is better that the authors of these 2 plugins have better cooperation and before releasing new versions,discuss about these probable errors
    beacause millions of sites are using these 2 plugins together

    @michael: Thank you very much. I truly appreciate it.
    @s_nickpour: I just applied Michaels update and on my installation it seems to be fixed. (CFDB 2.8.2 + CF7 3.9). Mails are sent, values appear in the database.

    Plugin Author Takayuki Miyoshi


    @msimpson Michael, maybe I can find out the cause of the issue if I can check the site having the issue. Can I have the URL?

    I think I have it resolved. My code was accessing WPCF7_ContactForm::title directly which is now private. This works to get the data but seems to cause a side-effect. Using the WPCF7_ContactForm::title() method seems to fix it.

    @michael Simpson

    Finally can you help me how to fix it?

    conflict with last version of contact form 7 and cfdb!

    What do you mean by “conflict”?

    SOLVED with update for CFDB 2 mins ago …

    Our library is set up to collect data using wpcf7_before_send_mail, which redirects the data into a database so I can generate graphs from it, and we’ve just lost over 3 hours of work.

    Is there a quick way to get this back online? Damn things made me look incompetent.

    Is there any way to downgrade to 3.8 or something? I need to fix this and I’d rather keep the validation instead of just writing my own form/shortcode.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘[Resolved] 3.9 Breaks CFDB Plugin’ is closed to new replies.
Skip to toolbar