Fatal error in Email_Before_Download_Form::html()
-
On a WordPress 6.1.1 site, PHP 7.4.33, a client reported that they could not use the WPBakery Visual Composer on some pages.
I eventually traced it down to this error:
Fatal error>: Uncaught Error: Call to a member function getAttribute() on null in /var/www/vhosts/.../wp-content/plugins/email-before-download/includes/class-email-before-download-form.php:39 Stack trace: #0 /var/www/.../wp-content/plugins/email-before-download/includes/class-email-before-download-shortcode.php(68): Email_Before_Download_Form->html() #1 /var/www/.../wp-includes/shortcodes.php(355): Email_Before_Download_Shortcode->init_shortcode() #2 [internal function]: do_shortcode_tag() #3 /var/www/.../wp-includes/shortcodes.php(227): preg_replace_callback() #4 /var/www/.../wp-content/plugins/js_composer/include/classes/editors/class-vc-frontend-editor.php(936): do_shortcode() #5 /var/www/.../wp-content/plugins/js_composer/include/classes/editors/class-vc-frontend-editor.php(917): Vc_Frontend_Editor->toString()
I’ve temporarily added a check in that code to return ” if $parent is null, which at least gets the site up and running, but I do not know what impact that will have on functionality elsewhere.
Is there any other information that would help to track down the issue, or is this something introduced by WP 6.1?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal error in Email_Before_Download_Form::html()’ is closed to new replies.