• Resolved Yggy

    (@yggydrasil)


    When trying to create a new cf7 form I get a fatal error. Below the error log from my webserver:

    PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function default_template() in /wp-content/plugins/cf7-summary-and-print/includes/admin/class-cf7-sp-settings.php:94, referer: /wp-admin/admin.php?page=wpcf7
    Stack trace:, referer: /wp-admin/admin.php?page=wpcf7
    #0 /wp-includes/class-wp-hook.php(288): CF7_SP_Setting->set_default_template(NULL, 'cf7_sp_summary'), referer: /wp-admin/admin.php?page=wpcf7
    #1 /wp-includes/plugin.php(206): WP_Hook->apply_filters(NULL, Array), referer: /wp-admin/admin.php?page=wpcf7
    #2 /wp-content/plugins/contact-form-7/includes/contact-form-template.php(18): apply_filters('wpcf7_default_t...', NULL, 'cf7_sp_summary'), referer: /wp-admin/admin.php?page=wpcf7
    #3 /wp-content/plugins/contact-form-7/includes/contact-form.php(99): WPCF7_ContactFormTemplate::get_default('cf7_sp_summary'), referer: /wp-admin/admin.php?page=wpcf7
    #4 /wp-content/plugins/contact-form-7/admin/admin.php(327): WPCF7_ContactForm::get_template(Array), referer: https://sub.domain.tld/wp-admin/admin.php?page=wpcf7
    #5 /wp-includes/class-wp-hook.php(286): wpcf7_l..., referer: https://sub.domain.tld/wp-admin/admin.php?page=wpcf7

    Using:
    WP 5.2.1
    CF7 5.1.6
    CF7 SP 1.1

    When editing an existing form, or duplicating an existing form into a new form, there is no fatal error.

Viewing 1 replies (of 1 total)
  • Plugin Author Muhammad Rehman

    (@muhammad-rehman)

    Hi @yggydrasil

    Thanks for reporting the issue. I have fixed this issue and released a new version 1.1.1 with the fix. please update the plugin to get the latest version with the fix.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘fatal error when making new contact form’ is closed to new replies.