Cookie Notice throws fatal error on pages with embedded contact form 7 forms
-
Hi,
the cookie notice plugin is throwing a fatal error on pages with embedded contact form 7 forms:
Fatal error: Uncaught Error: Call to a member function id() on null in /xxx/xxx/xxx/wp-content/plugins/cookie-notice/includes/modules/contact-form-7/privacy-consent.php:175 Stack trace: #0 /xxx/xxx/xxx/wp-includes/class-wp-hook.php(324): Cookie_Notice_Modules_ContactForm7_Privacy_Consent->shortcode() #1 /xxx/xxx/xxx/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /xxx/xxx/xxx/wp-includes/shortcodes.php(447): apply_filters() #3 [internal function]: do_shortcode_tag() #4 /xxx/xxx/xxx/wp-includes/shortcodes.php(273): preg_replace_callback() #5 /xxx/xxx/xxx/wp-includes/class-wp-hook.php(324): do_shortcode() #6 /xxx/xxx/xxx/wp-includes/plugin.php(205): WP_Hook->apply_filters() #7 /xxx/xxx/xxx/wp-includes/post-template.php(256): apply_filters() #8 /xxx/xxx/xxx/wp-content/themes/xxx/content-page.php(23): the_content() #9 /xxx/xxx/xxx/wp-includes/template.php(812): require(‘/xxx…’) #10 /xxx/xxx/xxx/wp-includes/template.php(745): load_template() #11 /xxx/xxx/xxx/wp-includes/general-template.php(206): locate_template() #12 /xxx/xxx/xxx/wp-content/themes/xxx/page.php(12): get_template_part() #13 /xxx/xxx/xxx/wp-includes/template-loader.php(106): include(‘/xxx…’) #14 /xxx/xxx/xxx/wp-blog-header.php(19): require_once(‘/xxx…’) #15 /xxx/xxx/xxx/index.php(17): require(‘/xxx…’) #16 {main} thrown in /xxx/xxx/xxx/wp-content/plugins/cookie-notice/includes/modules/contact-form-7/privacy-consent.php on line 175
This happens since plugin version 2.5.1.
All the best
Christian
- You must be logged in to reply to this topic.