I’m getting a very similar error:
[25-Jun-2022 11:12:45 UTC] PHP Fatal error: Uncaught Error: Call to
a member function get_result() on null in
/home/xxx/public_html/wp-content/plugins/
contact-form-7/includes/contact-form.php:1053
Stack trace:
#0 /home/xxx/public_html/wp-content/plugins/
contact-form-7/includes/controller.php(25): WPCF7_ContactForm->submit()
#1 /home/xxx/public_html/wp-includes/class-wp-hook.php(305): wpcf7_control_init()
(line breaks added for readability)
the section question:
$submission = WPCF7_Submission::get_instance( $this, array(
'skip_mail' => $args['skip_mail'],
) );
$result = array(
'contact_form_id' => $this->id(),
);
$result += $submission->get_result();
I’m still trying to find out the cause, but I know it was a POST /contact/
with a user agent of "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46
(which does look valid for Microsoft Edge ).
However, I do note that the user went from my home page directly to the contact form (within the same second) and submitted the form a second later – all without loading any other assets from the site: so I expect a mis-behaved spammer bot is causing this.
-
This reply was modified 2 years, 5 months ago by Richard Bairwell. Reason: Readability