• Resolved jrunkel

    (@jrunkel)


    In our error logs we received this error:

    [01-Jul-2026 08:07:23 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_result() on null in /server/htdocs/domain.de/wp-content/plugins/contact-form-7/includes/contact-form.php:1083
    Stack trace: #0 /server/htdocs/domain.de/wp-content/plugins/contact-form-7/includes/controller.php(25): WPCF7_ContactForm->submit()
    #1 /server/htdocs/domain.de/wp-includes/class-wp-hook.php(339): wpcf7_control_init()
    #2 /server/htdocs/domain.de/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
    #3 /server/htdocs/domain.de/wp-includes/plugin.php(570): WP_Hook->do_action()
    #4 /server/htdocs/domain.de/wp-includes/class-wp.php(418): do_action_ref_array()
    #5 /server/htdocs/domain.de/wp-includes/class-wp.php(821): WP->parse_request()
    #6 /server/htdocs/domain.de/wp-includes/functions.php(1343): WP->main()
    #7 /server/htdocs/domain.de/wp-blog-header.php(16): wp()
    #8 /server/htdocs/domain.de/index.php(17): require('/homepages/7/d9...')
    #9 {main}
    thrown in /server/htdocs/domain.de/wp-content/plugins/contact-form-7/includes/contact-form.php on line 1083

    It happens when a contact form is submitted.

    We have WP, themes and plugins updated to the latest versions. After some try-and-error we found out, that this only happens in combination with the plugin “Custom Permalinks” on pages that have a custom permalink. Obviously CF7 fails to determine the submission object here. I believe this is the same error as described here:

    https://wordpress.org/support/topic/call-to-a-member-function-get_result-on-null-in-includes-contact-form-php108/

    (That topic is already closed, otherwise I would have written there.)

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

    (@takayukister)

    Where can we see the website in question?

    Thread Starter jrunkel

    (@jrunkel)

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter jrunkel

    (@jrunkel)

    Here is a list:

    Plugins:
    Advanced Editor Tools
    CF7 Apps
    Classic Widgets
    Contact Form 7
    Contact Form CFDB7
    Custom Permalinks
    Duplicate Page Pro
    Easy WP SMTP
    EWWW Image Optimizer
    Firelight Lightbox
    HappyFiles Pro
    Redirection
    Regenerate Thumbnails
    Relevanssi
    UpdraftPlus - Backup/Restore
    Wordfence Security
    WP Rocket
    WPS Hide Login
    Yoast SEO

    Themes:
    Our Custom Theme
    Twenty Twenty-Five

    As written above disabling Custom Permalinks fixes the error. But that also means, that the custom permalink we’ve defined for the page doesn’t work anymore.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    If you are sure that Custom Permalinks is the culprit, why don’t you ask for support in its support forum?

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

You must be logged in to reply to this topic.