• I get error message if I activate the hide form option, after looking to the code this error lead to the function xml_character_encode
    any help apreciated link to the error page with the form https://adexa.com/test-download/
    Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: div line 11 and p in Entity, line: 96 in /home4/adexa/public_html/wp-content/plugins/email-before-download/email-before-download.php on line 243

    Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: form line 3 and div in Entity, line: 97 in /home4/adexa/public_html/wp-content/plugins/email-before-download/email-before-download.php on line 243

    Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: div line 1 and form in Entity, line: 98 in /home4/adexa/public_html/wp-content/plugins/email-before-download/email-before-download.php on line 243

    Warning: DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 98 in /home4/adexa/public_html/wp-content/plugins/email-before-download/email-before-download.php on line 243

    Warning: Invalid argument supplied for foreach() in /home4/adexa/public_html/wp-content/plugins/email-before-download/email-before-download.php on line 247

    Fatal error: Call to a member function appendChild() on null in /home4/adexa/public_html/wp-content/plugins/email-before-download/email-before-download.php on line 261

    • This topic was modified 7 years, 12 months ago by ramailo.
Viewing 3 replies - 1 through 3 (of 3 total)
  • I have not seen that before. You’re doing multiple downloads (checkboxes)? What is your shortcode?

    I have a couple of things you can check or try:

    Make sure you have WP_DEBUG turned off. If it’s currently turned on, which I think it is, then turn it off and test again ( or if you want to leave it turned on then make it’s output go to a file — see https://codex.www.ads-software.com/Debugging_in_WordPress ).

    If that didn’t fix it, then make sure none of the Titles of your download files have any unusual characters in them. No apostrophes, no quotes, no less-than, no greater-than. If you have an apostrophe or whatever in the Title then take it out and retest. By “Title” I’m referring to the Title field in Download Monitor (which is text you provide, not the filename itself).

    If that still didn’t fix it, then change your shortcode to be just 1 download rather than multiple. Test again. There used to be a bug where multiple downloads didn’t work with the hidden option, but I thought the plugin author fixed it .. maybe they didn’t. Try and see. If it works for one then either they didn’t fix it or there’s something goofy with your filenames or filetitles (though there shouldn’t be because of the previous step I had you do).

    Thread Starter ramailo

    (@ramailo)

    When I use 1 files the form work wp debug is

    turned off there file nameless is saeles-opetatio. Pdf
    Xdfp_gike. Pdf

    Ok, I tried out checkboxes with hidden form and it works as it should.

    I then tried a bunch of different stuff to try and break it and I eventually managed to do it and reproduce the error message you’re seeing. I did that by editing my CF7 contact form and just putting a div tag in there without the closing /div tag. That broke things and spit out those loadxml errors like you’re seeing.

    So, I’m guessing you have unclosed/unmatched HTML tags that you’ve put into your CF7 contact form. Check for that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error code if i use hide form option’ is closed to new replies.