Can’t export emails from log
-
We are using the email before download plugin. I can export my log but the user field is blank. We want to collect and export the email address. How do we make it properly collect and then export the email field.

-
This topic was modified 9 years, 8 months ago by
barbkemp.
-
This topic was modified 9 years, 8 months ago by
-
Use the export CSV link from the top of the EBD Settings page rather than from Download Monitor.
Thanks for the response.
I went to settings–>Email Before Download
Then clicked on
“click to ecport the Email Before Dowload log as a .CSV fileIt did download. But it had even less data showing only the field names of row 1.
IS there anything else you would recommend?
Sounds like you don’t have things set up correctly. Can you post a URL to your page? What is the shortcode you are using?
An Example shortcode is [email-download download_id=”137″ contact_form_id=”1486″ ]
It looks like you have things mostly set up correctly. I put my email address in the form and hit submit and the page came back with a link to the download. Everything up to that point looks good. However, when I clicked the link to the download file I got a blank screen rather than the file.
The link it gave me was:
http://www.southwickassociates.com/wp-content/plugins/email-before-download/download.php?dl=0bd9e732d947e0922b5d11617d269500Looking at that with Developer Tools / Firebug the response that is coming back from your site is an HTTP 302, which is supposed to tell my browser where the file is at using the “Location: XXXXX” (where XXXX is a URL to the file), but your site is just doing “Location:” with no URL to the file, which is a problem.
So, the 302 redirection is what happens when you have the Hide/Mask setting unchecked in the EBD settings. Basically EBD just tells the browser where the file is (using Location) and the browser then requests it from the server & the server delivers it. On the other hand, if you were to check the Hide/Mask setting then EBD would attempt to deliver the download file to the browser by reading it off the filesystem using PHP and transmitting to the user’s browser. Because the two methods differ in how they access the download file to give it to the user’s browser, sometimes one way will work and the other won’t. That’s pretty rare, but it does sometimes happen.
So, all of that explanation is to say that if I were in your spot what I would first do is check Hide/Mask in the EBD Settings, save them, and then go to the webpage and try it and see if it works now. If it doesn’t work then there are 2 possible issues:
1) Your file is messed up somehow in Download Monitor. Maybe you have the info for it in Download Monitor, but the file is no longer in the directory where Download Monitor thinks it is or something like that. I would look at the detail page for your download in Download Monitor (“edit” the download) and then on that screen look at the top-right area and there will be a URL. That URL is how you would access your file using Download Monitor (no EBD involved). Take that URL and put it in a browser and see if you get your file. If not, then you should basically start over and upload a new file into Download Monitor and get everything right and then repeat the test (then if it works go fix your shortcode to use the new download_id). If it does work, then you know that at least at the basic level your download file does indeed work … proceed to #2
2) The other possible issue is that EBD has become confused and now has old data in the database that is coming up when EBD tries to do it’s thing. This usually happens when you are first setting things up and you start doing things like uploading the same file multiple times, getting different download_ids, making different shortcodes, etc. To fix this, you should:
– make a new contact form in contact form 7 (this should be just like the one you have, but we want to do this so we get a new contact_form_id
– upload your file into Download Monitor again, but before you do that, you must give it a new filename on the filesystem. Again, the point of this is to get a new download_id from Download Monitor and make sure we’re using new stuff, not old stuff.
– make a new page in wordpress (this will be your new test page). Put an EBD shortcode on that page and make sure you use the NEW contact_form_id and the NEW download_id. If you screw up and accidentally use one of the old numbers, then you have to start completely over and get all new stuff again. So, once you get the new shortcode on there, then test again and it should work.Thanks for the detailed response. Are you sure you didn’t do anything like stare at the file just right? I tried the settings–>Email Before Download
Then clicked on
“click to ecport the Email Before Dowload log as a .CSV fileAnd today it worked!!!!
Good! I have no idea why, but that’s good. I just tried your page again and now the link to the PDF works too (rather than giving the blank screen it was giving yesterday).
Usually when something wasn’t working and then suddenly starts working after a few hours and you know for a fact that you and no one else changed anything then the issue is usually related to caching (old/wrong stuff gets cached and doesn’t work .. after a few hours the cache expires and then when you try again it suddenly works because you don’t get the old/wrong cached stuff). However, that’s normally not an issue for things that are dynamic (like the results of a form submission). So, I dunno why it wasn’t working and now it is. Let’s just hope it stays working 🙂
The topic ‘Can’t export emails from log’ is closed to new replies.