• Resolved jenscanon20

    (@jenscanon20)


    Hi, PDF Forms Filler for Contact Form 7 was working before i updated every plugin that i have, now that the pdf won’t attach anymore, i deactivated all the plugins that is connected to the contact 7, i have now 2 running plugins the contact 7 and Forms Filler for Contact Form 7. It is not working since the last update which is also when i was working my function.php, i added contactform7_before_send_mail function here is the code:
    function contactform7_before_send_mail( $form_to_DB ) {
    global $wpdb;
    $form_to_DB = wpcf7_Submission::get_instance();
    if ( $form_to_DB ) {
    $formData = $form_to_DB->get_posted_data();
    $playersname = $formData[‘players-name’];
    $age = $formData[‘age’];
    $yearsplayinghockey = $formData[‘of-years-playing-hockey’];
    $today = date(“Y-m-d H:i:s”);

    $inserted = $wpdb->insert( ‘register_data’, array(
    ‘playersname’ => $playersname,
    ‘age’ => $age,
    ‘yearsplayinghockey’ => $yearsplayinghockey,
    ‘date_reg’ => $today), array( ‘%s’,’%s’,’%s’,’%s’ ) );

    i deleted this function but still not working, my wordpress is 5.2.4, and my contact form 7 is 5.1.4 i also had a feeling that maybe its because of the Pdf.Ninja API. i just don’t know what i did wrong when it was working the last day i check it.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jenscanon20

    (@jenscanon20)

    I figured it out. when i delete all my codes in the function.php the pdf will send along in the email . what should i do so i can add the codes in the function and recieve the pdf at the same time?

    Thread Starter jenscanon20

    (@jenscanon20)

    i have resolve it, there is no problem with the plugin but it is because of my code in the function.php i have research and found out that it will regenerate errors in the templates if i add custom codes in the parent function.php i should have created a child themes for me to add my code. thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Attachment does not work anymore’ is closed to new replies.