Support » Plugin: Email Before Download » 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)
  • Plugin Author mandsconsulting

    (@mandsconsulting)

    Hi @tibbsa,

    Thank you for sharing this information. Could you also please provide us the following information on the page you are experiencing issues on:
    1. Shortcode and a URL showing the WordPress Download Monitor working successfully
    2. Shortcode and a URL showing the Contact Form 7 working successfully
    3. Shortcode and a URL showing the Email Before Download failing/succeeding
    We will look into this issue and get back to you on our findings.

    Plugin Author mandsconsulting

    (@mandsconsulting)

    Hi @tibbsa,

    Thank you for pointing this issue out and looking into it as well. Unfortunately since this is a paid for plugin, we are unable to test and make sure our plugin is compatible. Since you have access to it and made the change, just thought we would ask to see how the change is holding up? Did it end up breaking anything else?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error in Email_Before_Download_Form::html()’ is closed to new replies.