dtynan
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Before Download] Downloads don't showalso, try setting for it “inline” and testing then set it for “both” and testing again and post the results. Leave it set for whichever fails or if they both fail then leave it set for “both” so I can try it.
Forum: Plugins
In reply to: [Email Before Download] Downloads don't showmproudlock13 — make sure your form in CF7 is using “your-email” for the email address field name in the shortcode. See the FAQ and the Screenshots on here for EBD if you don’t know what I’m referring to.
If still have a problem then make a public test page and put the URL in here so we can try it.
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?Awesome Advansys, that’s great news!
First, you are right, I overstated things by saying “your-name” is required for things to work. Things will work without that, but if you want the name to show up in the log then you have to use “your-name”.
I can only speculate as to what’s happening, but here are some thoughts:
“your-email” is needed for it to properly send the outgoing email to the address the web surfer has entered on your EBD form on your webpage. The function used by EBD is “wp_mail” and the first argument is that email address from the form. There is another email that I call the “notification email” that is sent to the email address configured in Contact Form 7 for your form that you are using in the EBD shortcode. Normally, the email address in there is your WordPress admin email address (however you could have changed it to something else).
Perhaps on WP 4.4, the wp_mail function kills the php program if you don’t give it a valid email address and thus you get a blank screen (because the program died). Maybe in 4.3 it caught that failure & still gave you a download link or new screen or whatever and didn’t fail completely. I don’t know if your 4.3 set up was really sending both emails or not (perhaps you were confusing the notification email with the other one that goes out, not sure).
Another possibility is that things go into the database when the user hits Submit on the form. Those things stay in the database. I have seen it happen that it will use the data from the database and ignore changes you have made if you do not get a new Contact Form ID and/or Download ID. That is why you sometimes see me tell people to make an entirely new test page with new file uploads with new filenames, etc. If you get all new IDs and new filenames and the problem persists, then I know it’s not leftover data in the database. I can’t specifically say if that was your issue or not, just that it may somehow have been the issue or part of the issue — the fact you changed contact form IDs and things changed makes it highly likely that either you had “leftover” data in there and/or that you hardcoded that email address in the CF7 form so that the notification email is being sent to that address and perhaps you thought it was the email with the download link. By the way, the best way to ensure things are right is to have 3 email addresses — put the WP Admin email address in the contact form 7 as it should be, then use the other 2 email addresses (one in gmail & one in yahoo) as test addresses to put in the form. Then, run a test, make sure you get an email notification to the WP administrator email and another to the gmail or yahoo test account, then repeat with the other test email address, just in case.
Forum: Plugins
In reply to: [Email Before Download] No formatting on download link emailSection 9 of the EBD settings allows you to do a custom format for the outgoing email that EBD sends. That email is sent to the email address that the web surfer fills in on your form. It is a common problem for this email to not be delivered — if you are set for “email” or “both” in the settings and you are only getting 1 email to your wordpress admin address but not one sent to the email address filled in on the form, then you are getting what I call the “notification” email that goes to the admin. It tells you what a user has download/selected on the form.
You should use a different email address that you control and put that into the form so you can see if that email is going out. My guess is that it isn’t & you are only getting the notification email.
Anyway, let’s assume that’s the case and your notification email has everything on one line. Is it multiple files together on one line with vertical bars in between them? (this would assume you are set up for multiple downloads)
Maybe post what you’re seeing…
Forum: Plugins
In reply to: [Email Before Download] ExportThere is no built-in way to remove fields from the CSV export of either Download Monitor or Email Before Download. Note that both plugins have a way to export a csv file (the EBD one is going to be more useful). I don’t know how the export stuff is written in EBD … I have seen a couple pieces of code here & there that I think will have issues with UTF-8, but I could be wrong. Anyway, you could try a plain english filename & description & fill in the form in plain english and see it works for that, but probably doesn’t really help ya much.
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?fredperes, there are actually 2 emails that get sent.
The Contact Form 7 plugin sends a “notification email” to the wordpress admin email address (which is most likely you). This email almost always goes through just fine. This email will not have any links on it but it does list the filename or filenames that the websurfer is downloading (once he fills in the form on your webpage and presses submit).
The EBD plugin will also send an email if you have it set it to “email” or to “both” (but not if you set it to “inline”). This email goes to the email address that some web surfer has typed into the form on your public webpage. This email will contain link(s) that the user can click to download the file(s). These link(s) are basically the same link that appears on the webpage. Also, the email may have the download file attached if you have turned on attachments (saving the trouble of the user having to click the link). Make sense? So, this is the email that often has trouble getting delivered.
So, if you’re seeing the link appear and it’s working when you click it, then you are in good shape and you do not have any problems related to WordPress 4.4. Instead, you just have a problem with the email getting delivered to the web surfer that filled in the form. Assuming you do want that email to go out (meaning “both” or “email” is the setting you want), then you need to fix that problem. You can look through the last 10 or 20 support items on this forum and you will find several examples of people running into this problem where I have explained their two options (install one of two different plugins). For example, see https://wordpress.org/support/topic/email-to-user-not-sending?replies=2 or https://wordpress.org/support/topic/sender-shows-as-wordpress-in-the-email?replies=4
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?advansys, if you haven’t done so already, revert your php code back to the original EBD code (in other words, get rid of the changes i had you do earlier).
Also, I’d like you to go into the Download Monitor part and look at the file you uploaded (the one that you are trying to download via the EBD form on your test page). Look in the upper right part of the detail page and there will be a URL. Post that URL into this ticket (it will be the URL that leads directly to the download of the file [without using EBD .. just uses Download Monitor]). In addition to the URL, post the ID number of the download, which should be on that same screen I believe. I assume the URL is going to be “http://www.recollx.com/downloads/5” and the ID is “5”, but I just want to be sure.
Also, post the shortcode you are using in your test page.
Are you on windows or linux? apache? do you have any weird redirects or load balancers or anything unusual in your setup?
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?fredperes, I still don’t know where your EBD form is on your site (or if you have a test page) so I really can’t test it. If you have it set to “both” and the link is working but the email is not, then that is a common problem that is probably unrelated to your wordpress upgrade. If the link is not working either, then tell me where your form is and/or make a testpage and post back in here with the info.
It’s sounding more and more like there is not a problem with the 4.4 wordpress upgrade and instead these are typical problems that people run into, but we just had a group of them all at once….
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?imudo, yes I tested the form in the white part of your page, on the right side, that has the title of “Telechargement” (with accents over the e’s). It is the EBD form (I examined the HTML, so I am certain). You must use a field name of “your-name” and a field name of “your-email” for the form names for a name field and an email field. That is a requirement of EBD. These field names are created when you set up the form in Contact Form 7.
See the third item in the FAQ:
https://wordpress.org/plugins/email-before-download/faq/See the second screenshot:
https://wordpress.org/plugins/email-before-download/screenshots/See how they have “your-name” and “your-email”? Without that, it will not work.
Also, you can do two name fields if you want (like you are doing), but one of them must be “your-name” (and obviously it’s probably going to end up with only the first or last name of the person if you try and split it across two fields, unless you make custom changes to the php code or add in some tricky javascript). You are better off just using a single name field really.
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?Advansys, your url to your test page is giving a 404
http://www.recollx.com/download-form-test/Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?Everyone – I strongly suggest you each create a public test page that is in ENGLISH for everything. Make the filename english. The file title english. The text on the screen english. Everything english, no characters with accents anywhere – not in the messages, not in the filenames, etc. Also, make the file download be a .jpg file and give it a name that you have never ever used before. Upload it into Download Monitor. Then, look at the detail for that file in Download Monitor and in the top right of that screen there will be a URL. That URL should let someone get to your download file and download it. If that doesn’t work, you have problems that are not related to EBD. Please check that. If that works and you have a public test page all in english then post the URL to it.
imudo – I looked at your test page and I’m not sure how it could work because the form (in the lower right of the page) does not seem to have a field named “your-name” or a field named “your-email”. I think you’ll need those for it to work. I don’t know if those are messed up on your actual site or just the test page.
fredperes – I couldn’t figure out where the form was on your website to get to the download (also it’s in Portuguese which makes things difficult). Please do what I said up above and post again.
alevadis – I tried your test page and it worked fine for me as far as the download link goes. I was able to click it and download a PDF with a filename of EcoVadis-Case-Study-Sanofi.pdf that is 6 pages long and looks fine. It’s 283,431 bytes long. However, I did not receive it in email, so if you have it set to ‘both’ then your email delivery is not getting through. I sent it to an email address on a server I control and I never saw your system even try to connect. Thus, I think your system is having trouble sending mail out (assuming you do have it set to ‘both’). This could be an issue where you need to get help from your hosting provider. However, before you do that, you might want to try installing the Postman SMTP plugin by Jason Hendriks and then take a look at it’s log and see what it is saying about your mail delivery.
Forum: Plugins
In reply to: [Email Before Download] Sent email doesn't contain a download linkvarsha27, please make sure you have read my earlier comment in this ticket if you have not already done so (I’m referring to the 2nd comment in this same item where I explain about the 2 emails and which is which). I assume you’ve read it since you’re commenting on this one, but just making sure…
so if the admin is getting an email & you have set things up correctly, then that is the “notification email”. It lists which files the user downloaded, but those filenames are not links. There are no links or attachments on the notification email.
the other email, which goes to the user, should have a link and/or attachment depending on how you set things up. it sounds like that email is not making it to the user. that is a common problem. some email providers block incoming email where the From: of the email doesn’t match the actual account/system doing the sending (particularly if you not have set up the proper spam validation stuff like SPF, DKIM, DomainKeys, etc).
Your best bet is to install a plugin called Postman SMTP. Everyone who has had the problem that has installed that plugin has been able to get things working. The author is also very helpful, if needed. see https://wordpress.org/plugins/postman-smtp/
Alternatively, you can install https://wordpress.org/plugins/custom-sender-for-email-before-download/ which is a plugin that will allow you to set the From: of the email that is sent to the user by Email Before Download. You can set the From: to be a valid username at your domain. Note that every time you change your EBD settings it will actually blank out the From: setting in the Custom Sender for Email Before Download plugin, so you’ll have to go put it back in there.
Either option works, but Postman SMTP is what I would recommend — it has lots of help & logging & such to make diagnosing further issues easier.
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?does anyone see the problem who does NOT have the Advanced Custom Fields plugin installed?
Forum: Plugins
In reply to: [Email Before Download] Not working on WordPress.org 4.4?In the original description of this problem (back at the beginning of this thread), the symptoms did not include an error message. All of you that think you are having the same problem on WP 4.4 may or may not actually be seeing the same problem. Saying “it doesn’t work on 4.4” isn’t too helpful in figuring out if there is an actual single issue affecting several of you or if you are perhaps seeing different problems.
I suggest each of you post a description of what you see that is broken and also post a test URL that we can get to it to try it. And post whether you upgraded from WP 4.3, whether it worked prior to 4.4, and your versions of Download Monitor & Contact Form 7.
Forum: Plugins
In reply to: [Email Before Download] Multiple document issuesAh, I just remembered that that particular fix I just gave you will work fine (I use it on one of my sites) as long as you are using EBD for multiple downloads. If you try and change it to use single download (not checkboxes or radio buttons) then that fix will mess it up. That’s normally not an issue since you would do one or the other, typically, but if you want a more robust fix that will work in either case, then see the very bottom of this support item and use the code I put in my final comment on there:
https://wordpress.org/support/topic/checkbox-non-coche-et-envoi-du-formulaire?replies=12