• Hello

    I am getting an Uncaught error: Call to a member function getAttribute() on null in …/wp-content/plugins/email-before-download/includes/class-email-before-download-form.php:39

    The page cannot be open and edits cannot be saved – everything used to work, and I cannot understand what may have changed.

    Anybody knows what causes this error and how to fix it?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mandsconsulting

    (@mandsconsulting)

    Hi @elenaocone,

    Thank you for bringing this to our attention, and we will look into it further. It looks like we need to update the plugin to satisfy the new version of PHP 8.

    Thread Starter elenaocone

    (@elenaocone)

    Hello @mandsconsulting

    Thanks for your reply, I look forward to your update!

    Plugin Author mandsconsulting

    (@mandsconsulting)

    Hi @elenaocone,
    After looking into it further it appears it may not be related to the newest version of PHP 8. To help us track down this issue could you provide the following:
    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

    Thread Starter elenaocone

    (@elenaocone)

    Hello @mandsconsulting

    After testing both CF7 and Download Monitor, I have finally found out the cause of the fatal error: the shortcode must be corrected from

    [email-download download_id=”X” contact_form_id=”Y”] as per the plugin WordPress page

    to [email-download download_id=’X’ contact_form_id=’Y’]

    and everything is back to normal.

    During my tests I noticed that Download Monitor shortcode had the id between single and not double quotation marks , so I tried it out, and it worked. I am not so well versed in PHP to understand why the difference I relevant in this case, but I suppose the Id number should be a simple string, so there should be no difference in using ” ” or ‘ ‘ , as per https://www.geeksforgeeks.org/what-is-the-difference-between-single-quoted-and-double-quoted-strings-in-php/ – unless in the plugin code is specified otherwise.

    Was it changed in the last update, maybe? Because before that everything worked, please check it out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error – uncaught error’ is closed to new replies.