"Undefined Variable" Error when trying to Submit Form
-
I’m using a form created with Contact Form 7 to allow a download from Download Monitor.
I’ve tested the contact form on it’s own, and the download and they both work individually.
This is the shortcode I’m using:
[email-download download_id="2064,2076" contact_form_id="4"]
and here is the link to the page:
https://mytestsite-b1.info/download-form-test/
You’re able to send the form, but an e-mail with the download is never sent, and the inline link that shows up directs to a page with the following error:
Notice: Undefined variable: wp_dlm_db in /home/b1mytestsite/public_html/wp-content/plugins/email-before-download/download.php on line 38
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE id = 2076’ at line 1]
SELECT * FROM WHERE id = 2076;Warning: Cannot modify header information – headers already sent by (output started at /home/b1mytestsite/public_html/wp-content/plugins/email-before-download/download.php:38) in /home/b1mytestsite/public_html/wp-content/plugins/email-before-download/download.php on line 47
If I use a shortcode for only 1 download, such as:
[email-download download_id="2064" contact_form_id="4"]
When submitting the form a loading icon appears to the right of the button indefinitely – nothing happens.
I’m using the latest versions of all the associated plug-ins.
Can anyone please help?
- The topic ‘"Undefined Variable" Error when trying to Submit Form’ is closed to new replies.