• Resolved joakimcs

    (@joakimcs)


    On update site crashes fatally. It is due to the method checkRemoveExpiredContacts() within class formsCfs (/plugins/contact-form-by-supsystic/modules/forms/mod.php) which refers to the object $wpdb, which is NULL. Seems like a scope issue.

    I’ve set up a quick fix locally, but can this be looked into in the next release?

    PHP version: 7.2.24

    Complete error message:

    An error of type E_ERROR was caused in line 193 in the file  /srv/www/www.langsethadvokat.no/public/wp-content/plugins/contact-form-by-supsystic/modules/forms/mod.php. Error message: Uncaught Error: Call to a member function query() on null in /srv/www/www.langsethadvokat.no/public/wp-content/plugins/contact-form-by-supsystic/modules/forms/mod.php:193
    Stack trace:
    #0 /srv/www/www.langsethadvokat.no/public/wp-includes/class-wp-hook.php(292): formsCfs->checkRemoveExpiredContacts('')
    #1 /srv/www/www.langsethadvokat.no/public/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #2 /srv/www/www.langsethadvokat.no/public/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /srv/www/www.langsethadvokat.no/public/wp-settings.php(582): do_action('wp_loaded')
    #4 /srv/www/www.langsethadvokat.no/public/wp-config.php(93): require_once('/srv/www/www.la...')
    #5 /srv/www/www.langsethadvokat.no/public/wp-load.php(37): require_once('/srv/www/www.la...')
    #6 /srv/www/www.langsethadvokat.no/public/wp-login.php(12): require('/srv/www/www.la...')
    #7 {main}
      thrown
Viewing 2 replies - 1 through 2 (of 2 total)
  • ragingsquirrel

    (@ragingsquirrel)

    Exact the same crash and error message here since the last update to version 1.7.15

    Plugin Support Support Ole

    (@trsupsys)

    We are already working on this issue and will release a hotfix.

    Best wishes,
    Ole

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error and fix – Uncaught Error: Call to a member function query() on null’ is closed to new replies.