• PHP Fatal error: Uncaught Error: Call to a member function get_status() on null in
    /public/wp-content/plugins/contact-form-7/includes/contact-form.php:721

    FIX:

    if (null !== $submission) :
    $result = array(
    ‘contact_form_id’ => $this->id(),
    ‘status’ => $submission->get_status(),
    ‘message’ => $submission->get_response(),
    ‘demo_mode’ => $this->in_demo_mode(),
    );
    if ( $submission->is( ‘validation_failed’ ) ) :
    $result[‘invalid_fields’] = $submission->get_invalid_fields();
    endif;
    else:
    $result = false;
    endif;

    // if ( $submission->is( ‘validation_failed’ ) ) {
    // $result[‘invalid_fields’] = $submission->get_invalid_fields();
    // }

Viewing 3 replies - 1 through 3 (of 3 total)
  • It seems I am being included in all contact forum 7 fourms even if I havent engaged. I did send one enquiry yesterday but have been included in all since then, can someone advise on this situation, thanks

    Hi @bartelmerchess,

    Im having this same issue. Where does your code go? functions.php? Thanks!

    Thread Starter bartelmerchess

    (@bartelmerchess)

    At the same position as I state in my answer, inside the plugin itself:

    /public/wp-content/plugins/contact-form-7/includes/contact-form.php
    Line 721

    You’ll see the lines I commented out in my answer are those at line 721.

    This is a hotfix and should be checked with after each update of the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘call to a member function get_status() on null’ is closed to new replies.