Hello everyone.
I followed you tutorial and tried to make it work but I’m having a fatal error.
I’m using
WordPress 4.9.2 (Bedrock version)
CF 5.0
Download Monitor 4.0.1
[Fri Feb 02 17:00:59.110962 2018] [php7:error] [pid 3014] [client ::1:60261] PHP Fatal error: Uncaught Error: Call to a member function insertBefore() on null in /path/to/plugins/email-before-download/includes/class-email-before-download-form.php:61\nStack trace:\n#0 /path/to/plugins/email-before-download/includes/class-email-before-download-shortcode.php(60): Email_Before_Download_Form->html()\n#1 /path/to/wp-includes/shortcodes.php(319): Email_Before_Download_Shortcode->init_shortcode(Array, ”, ’email-download’)\n#2 [internal function]: do_shortcode_tag(Array)\n#3 /path/to//wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\\\[(\\\\[?)(email\\\\…’, ‘do_shortcode_ta…’, ‘<p>Prossimament…’)\n#4 /path/to/wp-includes/class-wp-hook.php(286): do_shortcode(‘<p>Prossimament…’)\n#5/path/to/wp-includes/plugin.php(203): WP_Hook->apply in /path/to/plugins/email-before-download/includes/class-email-before-download-form.php on line 61, referer: https://domain.dev/wp/wp-admin/post.php?post=8701&action=edit
Any ideas?