• My entire site is currently down, and it appears to be because of the latest Email Before Download update.

    When I go to my homepage, here is the message that is displayed instead of my site:

    Warning: DOMDocument::loadHTML() expects parameter 2 to be integer, string given in /home2/lagunal1/public_html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 35

    Fatal error: Uncaught Error: Call to a member function getAttribute() on null in /home2/lagunal1/public_html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php:37 Stack trace: #0 /home2/lagunal1/public_html/wp-content/plugins/email-before-download/includes/class-email-before-download-shortcode.php(67): Email_Before_Download_Form->html() #1 /home2/lagunal1/public_html/wp-includes/shortcodes.php(319): Email_Before_Download_Shortcode->init_shortcode(Array, ”, ’email-download’) #2 [internal function]: do_shortcode_tag(Array) #3 /home2/lagunal1/public_html/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(email\\…’, ‘do_shortcode_ta…’, ‘Enter y…’) #4 /home2/lagunal1/public_html/wp-content/plugins/popup-maker/classes/Helpers.php(18): do_shortcode(‘Enter y…’) #5 /home2/lagunal1/public_html/wp-content/plugins/popup-maker/classes/Site/Popups.php(121): PUM_Helpers::do_shortcode(‘Enter y…’) #6 /home2/lagunal1/public_html/wp-content/plugins/popup- in /home2/lagunal1/public_html/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 37

    Could you please help me understand what needs to be done to resolve this?? It is urgent, since my site is not accessible to the public as-is.

    Also, how can I prevent this plugin from updating automatically? Every time an update is pushed out, errors result that cause me to spend hours figuring out a solution.

    Thank you in advance for any help!!

    • This topic was modified 6 years, 11 months ago by lagunalane.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author mandsconsulting

    (@mandsconsulting)

    A fix has just been pushed. This was an issue with trying to work around PHP constants that are not defined in older versions of PHP.

    Thread Starter lagunalane

    (@lagunalane)

    Thank you! I re-activated the plugin, and everything appears to be working properly now. Thank you for pushing out the fix so quickly!!

    Hello, I have the same problem. I have the following error:

    Fatal error: Call to a member function getAttribute() on null in /wp-content/plugins/email-before-download/includes/class-email-before-download-form.php on line 39

    Any ideas how to fix it ?

    Thank you in advance.

    @pnnaoned I had this problem too. Try to use this type of shortcode with another quotes:

    [email-download download_id=”X” contact_form_id=”Y”]

    I have the same problem – has anyone found a fix for this ?

    @mjmagin Please make sure you have added correct contact form ID.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My Entire Site is Down – Email Before Download Fatal Error’ is closed to new replies.