• Resolved asbruff

    (@asbruff)


    I got installed email-before-download for some while, with no problem. I upgraded wordpress to the lastest release and now it’s not working anymore.

    The form shows up, you can fill it, but when you click “download” it starts loading on and on… and nothing is really shown (no downloads and no error messages), and you don’t even get the email.

    If you want to try the page is at http://110percentoeoltre.it the form to the top.

    https://wordpress.org/plugins/email-before-download/

Viewing 7 replies - 1 through 7 (of 7 total)
  • I tried your page several times. I see the same problem you do when I put in a name & an email address and hit submit. It POSTs the form data via ajax, as it should, but no response comes back.

    Interestingly, if I just hit submit with empty fields (or just fill in name or email but not the other), then it POSTs the form data via ajax and does return an error response saying I need to fill in both fields. So that seems to work ok.

    I’m not sure why upgrading to WP 4.4 would suddenly cause this to start happening. I’m also not sure what the problem is. We’re going to have to try a few things to figure it out I think.

    One thing I noticed that was not normal is that when the page first loads, it goes ahead and does an ajax GET back to itself and passes along some of the Contact Form 7 variables. I have seen this now & then on other people’s pages — usually it doesn’t seem to be a problem, but in some cases it tends to point to a plugin or theme conflict.

    While examining the HTML of your page, I noticed that the form is within a div that is labeled as “textwidget”. I looked at the Designfolio theme homepage and I see that it has some widgets and some features like ‘header inserts’ (whatever that is). I’m wondering if you have done something like putting the EBD shortcode inside a widget or inside some sort of setting of your theme, rather than directly into the page (into the wordpress page)?

    The fact that your form is on the homepage makes it difficult to diagnose, because so many themes do special stuff with the homepage. Aside from answering the question I just asked in the previous paragraph, I would like you to make a new test page that is a normal wordpress page (not the homepage). Make a new contact form 7 form and get the new form id number and use that for your new EBD shortcode. Also, upload a new file to use for the download. Make it a filename you have never used before and make it a .jpg file. Use that download id in your new EBD shortcode. In other words, you are making a new download, a new CF7 form, and a new page with an EBD shortcode using those new IDs.

    Set it to ‘both’ in EBD (rather than ‘inline’ or ’email’) and set it to NOT mask.

    Then post the new url test page back here. Oh, also, make sure the filename and any text associated with the file are all plain english ascii characters — no accented characters.

    Thread Starter asbruff

    (@asbruff)

    Yes, the form is within a div with ID “textwidget”. It used to work days ago…

    “Header inserts” is just to show a custom widget in a specific place inside my modification of designfolio theme. So that widget on the homepage is not directly into the page, but I also put it in an article. You can reach it here: http://110percentoeoltre.it/e-book-gratis/

    I’ve uploaded a new PDF (tried with a JPG with no luck again) to download, i created a new CF7 and linked all together by “email before download”. This is the code: [email-download download_id=”71″ contact_form_id=”73″] (new IDs ar correct). The PDF has no spaces or special characters.

    In EBD i selected “both” and no flag on the mask real link.

    Same here.

    The shortcode produce form and its working fine when you fill up BUT when you click the download button it just create a new tab with a blank page on it.

    This plugin stop working after i updated last february 1. Please fix this. Ill gladly donate if you release an update.

    Cheers
    Ali

    asbruff – Ok, I tried the test page. Again, it seems to POST the data properly, but gets no response (unless you don’t fill in both fields). I don’t recall ever seeing this exact behavior. It looks like the program is most likely getting killed before it can send back the JSON response. I think you should check your PHP error logs — hopefully you know how to do that … depending on how your installation is set up, there can be several of them scattered around in multiple directories, or, sometimes your hosting provider gives a way to access them all via one interface (like in cpanel). I’m guessing that in one of them there will be an error that is killing the program somehow (though I cannot imagine why that would happen). As a last resort, you could try temporarily changing php.ini to display errors to the screen rather than to a file, which might show us the error when we submit the form, but no need to try that if you’ll just find & examine the end of every one of the php error_log files.

    Another thing to check … I’m pretty sure this is correct in your setup, but go into the CF7 form you are using and double-check that you are using “your-email” as the name of the field in the form (like where the html is).

    Also, I’d like to confirm the versions of CF7, DM, and EBD that you are using. And post the shortcode that you are using on that test page you made. And, go into your Downloads (Download Monitor) and pull up the download that you are using (the one with the download_id that is the same as your shortcode) and look at the detail page for that download and in the top right corner of the screen there will be a URL. That URL is the URL that you can use to directly access the download (bypassing EBD). Please post that in here also.

    alipio123 – please open your own ticket (and you need to go into your contact form 7 form that you made and make sure you are using “your-email” as the field name for the email address the user would type in)

    Thread Starter asbruff

    (@asbruff)

    i’ve checked in the error_log files, but only one line is showned…

    [Mon Feb 01 11:17:36 2016] [error] [client 191.232.39.241] client denied by server configuration: /home/c110per3/public_html/

    This is the only “error_log” i find in my cPanel admin panel (under “visitor stats”). No other error options here to check.

    Also with this configuration i don’t have access to the php.ini file. Is there a way to show php errors on the screen by just editing the .htaccess file?

    I’m using my email in the “to” field inside CF7.

    Now… versions:
    – CF7: ver. 4.3.1
    – DM: ver. 1.9.1
    – EBD: ver. 3.4

    The lastest, afaik.

    The shortcode i’m using in the page (i’ve checked the IDs one more… they’re both correct):

    [email-download download_id="71" contact_form_id="73"]

    Here’s the link for the direct download:

    http://110percentoeoltre.it/wp/wp-content/uploads/2016/01/02-11-2105-E-BOOK-110-percento-e-oltre-.pdf

    I hope you can help. Thanks.

    Thread Starter asbruff

    (@asbruff)

    I don’t know what the problem was, but i installed Postman SMTP and all went good.

    Now the form is still working as a charm. Thanks for your support, dtynan.

    awesome, glad you got it working.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Not working with WP 4.4?’ is closed to new replies.