dtynan
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Before Download] some problems with pluginI’m sorry, I’m not quite sure what you mean when you said “With these changes, I can’t download till now”. Does that mean that your Firefox is now working correctly or are you still having problems with it? (I know it can download the PDF directly using the Download Monitor URL .. that’s good .. but I couldn’t tell from that sentence if you’re saying it now works or if it’s still not working [when going through the normal process of filling in the form, etc])
If you mean Firefox is still not working right…. can you describe the problem? Like what exactly happens when you click on the link while running Firefox?
Have you tried clearing your Firefox cache & trying again? Do that if you haven’t already. I don’t think that will fix it, but it might. Also, if you are using any wordpress caching plugins then you might want to clear that cache also.
Your Download Monitor screenshot of the download file settings looks fine. I guess it’s possible that checking “Featured Download” might mess things up somehow, but I doubt it since my Firefox works just fine.
On the ‘second point’, what I mean is that when you click on a link to a PDF file the browser might give you a File/Save dialog like http://prnt.sc/e8xln5 or it might just go ahead and download the PDF and display the PDF in the browser window like http://prnt.sc/e8xlst
If you leave “hide/mask” unchecked then web browsers are almost always going to give the File/Save dialog window and the person can then save the file locally or maybe launch the Acrobat Reader or whatever.
If you check “hide/mask” then the browser makes the decision as to what to do. It might show the File/Save dialog if you don’t have the ability to display a PDF in your browser or in an external program (like the Acrobat Reader). But, that’s very rare. In most cases, it’s going to display the PDF in the person’s browser window (or possibly in another window if Acrobat Reader runs or something like that).
So, “hide/mask” controls that behavior … at least most of the time. In some cases, EBD may get confused where it gets the wrong value in the database and then it’s like you change settings and nothing changes. Sometimes, you can get things broken and then you can’t ever seem to get them working again, no matter what settings you try. That may be what you’ve run into here (though, again, it works for me, so this seems unlikely). Anyway, whenever things are just weird and don’t work right and there’s no obvious solution, it’s usually worth it to Add a new download in Download Monitor (but point at your same download file). The purpose of that is to get a new download_id. Then, go edit your page and change your shortcode so that it uses the new download_id. This will cause EBD to NOT read its values from the database (since something is there messed up) and instead create a new set of values in the database (which usually fixes things).
Forum: Plugins
In reply to: [Email Before Download] Change who the email is sent from?jkohut47, see the last paragraph in my previous reply.
Forum: Plugins
In reply to: [Email Before Download] Email to download doesn’t workCan you post a link to your page so I can try it?
Forum: Plugins
In reply to: [Email Before Download] some problems with pluginThe export feature is at the top of the EBD Settings page.
I’m not sure why Firefox isn’t downloading for you. Hard to say since it works for me. I suggest you try checking the “Hide/Mask” option in the EBD Settings and trying again. That will change the way EBD tries to deliver the file to the browser, which may cause it to work (or may not). It will also probably cause it to display the PDF inside the Firefox window rather than popping up a download/filesave window (assuming you have a PDF viewer plugin, of course). That may not be the behavior you want, but it’s worth a quick test to see if the problem goes away or not.
Also, you could try to access the pdf file via its Download Monitor URL using Firefox and see if that works. EBD is not involved in this test — just Download Monitor. To try this, just go Edit your PDF download in Download Monitor so that you can get to the download’s detail page for your pdf. Then over on the right side of the screen, kinda near the top-right, you’ll see a field for a URL. Grab that URL and paste it into a Firefox and see it can download the file. (The URL is gonna be something like http://comelite-arch.com/downloads/313 or something like that .. that’s just a made up example, but it’ll be something similar).
Forum: Plugins
In reply to: [Email Before Download] some problems with pluginIt looks like everything is working ok. I had no problems filling in the form and getting the pdf with either Chrome or Firefox.
The way EBD works when in ‘inline’ or ‘both’ mode is that the website visitor fills in the form and hits Submit. A link to the download file then appears beneath the Submit button (the link text is taken from the “Title” field for that file in Download Monitor). That is what you’re seeing and that is normal. EBD does not, and does not have the option to, immediately download the file to the user when the user hits submit on the form. It just does that link to the download. Or, multiple links if you’ve set it up for multiple downloads (the checkbox stuff). Or, it doesn’t display a link at all and instead emails the visitor a link (and possibly an attachment) if you select ’email’ or ‘both’ in the EBD settings.
Thus, it’s working as designed, but it sounds like you wanted it to immediately download the file when the user hit Submit, which it doesn’t do.
Forum: Plugins
In reply to: [Email Before Download] Inline link won’t appearWhen the visitor hits Submit on the form the server will send back a JSON response. The EBD PHP code in that area typically generates an unimportant PHP Warning message if you have WP_DEBUG turned on and you don’t have it set to put the debug into a file. In that case, that PHP warning message gets mingled in with the JSON response and corrupts it, causing the hang scenario you’re seeing. To solve this, you can either just turn WP_DEBUG off or make it send its output to a file rather than to the screen ( see https://codex.wordpress.org/WP_DEBUG )
Forum: Plugins
In reply to: [Email Before Download] Contact Form 7 form not appearingYou can Add A Download in Download Monitor and then put in a URL to another system rather than uploading the file. That does work. I suspect the repeated error you’re seeing is due to the fact that you made use of the Versions capability of Download Monitor. I don’t know that for sure, but I have a vague memory of the versions thing causing problems … though I could be wrong on that.
I think what you should do is just make a new download (Add another download in Download Monitor). In that Add page, click that Add File button or whatever it’s called and then put the URL in there and then Save it or Publish it or whatever that button on the far right is. Don’t do the versioning thing. Then, make note of the new download ID for that new download you just added and go over and edit your test page and change your shortcode to use the new download id. I suspect that will probably fix it….
That said, there are a couple of gotchas that you might run into… If you have checked the “hide/mask” option in the EBD Settings (and I think that you do have it checked), then EBD is going to try and go get the file using the URL you gave it and then send that file to the visitor’s browser. If you don’t have “hide/mask” checked, then EBD will just give the URL to the visitor’s browser (using Location: thatURL) and the browser will be redirected to that URL. In the latter case, that should pretty much always work, with the downside that the user will then know the URL to go to the file (theoretically he could give the URL to others and bypass your EBD form, for example). In the former case (where you have “hide/mask” checked), then it should work maybe probably .. I think maybe it needs to also see that your PHP has the CURL extension and I suspect you may also need to set allow_url_fopen to On in php.ini if you don’t already have it that way (because the EBD does a “readfile()” call and PHP won’t allow URLs in readfile() without that setting).
allow_url_fopen = On
So, to summarize:
- Try adding a new download with the same URL and don’t do the versioning thing when you add the download.
- Change the existing download_id in your test page to be the download_id for the download you just added.
- Test and see if it works.
- If it doesn’t work, try unchecking “hide/mask” in the EBD settings.
- If it still doesn’t work, something is wrong somewhere…
- If it does work then you can just leave it like that, or if you want hide/mask then go make it checked again in the EBD settings and then go do the allow_url_fopen thing in php.ini and test again.
- This reply was modified 9 years, 6 months ago by dtynan.
Forum: Plugins
In reply to: [Email Before Download] Contact Form 7 form not appearingYou have WP_DEBUG turned on and it is set to display errors and warnings to the screen. You need to turn WP_DEBUG off or otherwise make its output go to a file.
The issue is that when the visitor presses submit on the EBD form, EBD expects to get back valid JSON, but the EBD code that runs throws a warning message (which isn’t important) and that warning text gets mixed in with the JSON response and corrupts it. You just need to make the warning not happen by turning off WP_DEBUG or making it go to a file (this is a common problem by the way).
Forum: Plugins
In reply to: [Email Before Download] Contact Form 7 form not appearingWell that’s weird .. haven’t seen that before.
It looks like the bottom form — the one that should be created by EBD (and that should generally look like the CF7 form above it) — is a “grunion” form. I see “grunion” class names and such on its fields.
Honestly, I don’t know anything about Grunion Contact Forms or Jetpack. I think at some point Jetpack added Grunion Contact Forms into itself maybe? Or not, I’m not really sure. I don’t see a grunion plugin anymore and the last support item was from like 4 years ago. I see some stuff that associates with Jetpack somehow. I dunno. I guess you might want to look around for a Grunion plugin maybe? Or look in your Jetpack settings pages or something? I’m not really sure…. ???
Forum: Plugins
In reply to: [Email Before Download] Can’t download after update to WP 4.7.2post a url to your form page if you can and i’ll look at it
Forum: Plugins
In reply to: [Email Before Download] Feature Request – Custom SenderYeah, I agree it should be included. Hopefully one of y’all can get them to include it.
For people who are running their own servers and for people who have set up SMTP, it’s generally not an issue because they are usually sending mail with a proper From: value. However, the vast majority of folks are on some sort of 3rd party shared hosting and it’s a big problem there because the From: will always be wrong and many mail providers silently just drop the email. I suspect there are quite a few people running EBD on shared hosting who think their emails are getting out to people, but they are getting dropped silently by Yahoo or Gmail. Unless their website visitors complain, they’ll probably be unaware….
Forum: Plugins
In reply to: [Email Before Download] Feature Request – Custom SenderYou could try paying the $10 support fee that M&S Consulting mentions on the plugin homepage. I don’t know if that would make any difference, but it might get their attention. They actually have some code in the plugin to support changing the From:, but it’s commented out (I don’t know why or if it works even). Another option would be that they could simply mention the issue and the Custom Sender plugin in the FAQ, which would be easier to do than a code change…
Forum: Plugins
In reply to: [Email Before Download] Form doesn’t work properlyWhen the website visitor clicks Submit on your form, it posts the information vi ajax to the server and the server responds with a little bit of JSON. That JSON is getting corrupted because your system is set to display PHP warnings and the PHP warning message is getting mixed in with the JSON response. This is a fairly common problem. You need to turn off WP_DEBUG (or otherwise make PHP warnings stop displaying to the screen .. some folks like to just make that stuff go to a file rather than to the screen, which is what I do .. if it’s set to go to screen then it messes up that ajax transaction).
This is what gets returned from the server:
<br /> <b>Notice</b>: Undefined index: ebd_downloads in <b>/var/www/dietaanticancro.it/wp-content/plugins/email-before-download/email-before-download.php</b> on line <b>432</b><br /> {"mailSent":true,"into":"#wpcf7-f2871-p2890-o1","captcha":null,"message":"Grazie per il tuo messaggio. \u00c8 stato inviato.","onSentOk":["document.getElementById('wpm_download_1').style.display = 'inline'; document.getElementById('wpm_download_1').innerHTML='The link to the file(s) has been emailed to you.'; "]}That first part with the “Notice: Undef…” blah blah is the problem. To be clear, it’s the warning text itself that is the problem. What the warning is complaining about can be ignored — that’s not a problem. You just need to make the warning stop or at least stop going to the screen. Turn off WP_DEBUG or make it go to a file or whatever.
Forum: Plugins
In reply to: [Email Before Download] Form doesn’t work properlyI can’t view a preview page link in wordpress (it wants you to be logged in). You’ll have to publish the page and provide the link to it in order for me to see it.
Also, please provide the shortcode you are using.
Are you set to ‘both’ in the EBD settings? When you say you received the email with the download, are you sure that the email actually contained a link to the download or did it just tell you what was being downloaded (just as text, not as a link). I ask that because if you are set to ‘both’ or to ’email’ then EBD will send 2 emails out. One goes to the wordpress administrator (usually) and I call that email the “notification email”. It just tells you something was downloaded, but doesn’t actually have a link to the doownload. The other email goes to the email address that the website visitor typed into the form when he visited your page, filled in the form, and hit submit. In many cases, that second email doesn’t actually make it into the inbox. Often, people test their new EBD set up by typing in their own email address (which is often the same as the wordpress admin email address) into the form and hit submit and then they get 1 email and think things are working but really should have gotten two emails. Anyway, I realize that’s confusing, but basically you should be using a different email address to test with … like a gmail or yahoo mail address that is not the same as the wordpress admin email address. That way you can make sure both emails get through. Often, when you are on a shared hosting environment, which many wordpress sites are, then that second email — the one with the actual link to the download — gets blocked by google or yahoo or whoever because they think it’s spam due to the fact it’s being sent from a shared hosting system and the From: of the email address won’t match up the way it should (hard to explain).
Forum: Plugins
In reply to: [Email Before Download] 2 instances on one page – 2nd not workingI have seen a number of people do multiple forms on one page. I have not seen anyone try to do one form with multiple download buttons .. is that what you’re trying to do?
I looked at your page and I only see one form in it and only one download button. Maybe you can go into detail about you’re doing or wanting to do? (like what does the CF7 form that you created look like? etc)