PHP Fatal error: Uncaught Error: Call to a member function get_result() on null
-
Hi!
We are migrating our site from PHP 7 to PHP 8.
Contact Form 7 is working well in PHP 7, but not in PHP 8.
The working site is:
https://www.tabiquepluvial.es/ca/contacte/
The new site is working under this IP: 18.198.155.123
So to test, you need to add this lines to your hosts file.
18.198.155.123 https://www.tabiquepluvial.es
18.198.155.123 tabiquepluvial.esAfter submitting the form, you will get the typical WordPress error page.
and in logs:
[14-Sep-2022 05:35:07 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_result() on null in /DOCUMENT_ROOT/wp-content/plugins/contact-form-7/includes/contact-form.php:1054
Stack trace:
#0 /DOCUMENT_ROOT/wp-content/plugins/contact-form-7/includes/controller.php(25): WPCF7_ContactForm->submit()
#1 /var/www/tabiquepluvial/wp-includes/class-wp-hook.php(305): wpcf7_control_init()
#2 /var/www/tabiquepluvial/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 /var/www/tabiquepluvial/wp-includes/plugin.php(524): WP_Hook->do_action()
#4 /var/www/tabiquepluvial/wp-includes/class-wp.php(398): do_action_ref_array()
#5 /var/www/tabiquepluvial/wp-includes/class-wp.php(770): WP->parse_request()
#6 /var/www/tabiquepluvial/wp-includes/functions.php(1330): WP->main()
#7 /var/www/tabiquepluvial/wp-blog-header.php(16): wp()
#8 /var/www/tabiquepluvial/index.php(17): require(‘…’)
#9 {main}
thrown in /DOCUMENT_ROOT/wp-content/plugins/contact-form-7/includes/contact-form.php on line 1054Details old site:
Contact Form 7 version: 5.6.3
PHP 7.2.34
Details new site:
Contact Form 7 version: 5.6.3
PHP 8.1Any idea?
Regards,
Jordi
JOINSO
- The topic ‘PHP Fatal error: Uncaught Error: Call to a member function get_result() on null’ is closed to new replies.