dtynan
Forum Replies Created
-
Forum: Plugins
In reply to: [Email Before Download] Download link shows blank pagephenolin — unfortunately, skeptikal3 has not replied to my last updates, so I don’t really know the answers to my last things for him to try. Perhaps he gave up or maybe he figured out what was wrong. Regardless, let’s not mess up his support item with yours tacked on the end — please open a new item for yourself. Also, note that this symptom (clicking link and not getting file) has several possible causes, so you might actually have a different problem causing the same symptom. Please include a link to your page (or a test page) where I can try it. Also, in the new support item explain what you meant when you said you upgraded “the plugin” (what plugin?)
Forum: Plugins
In reply to: [Email Before Download] Link only loadingWhen you press Submit the server will respond with some json that is used by the javascript on the page to make the link appear on the page. The json that is returned must be valid json. Normally it is, however, if your site is configured to display errors to the screen then any warnings or errors (most of which are not important and can be ignored) get shoved into the json response and basically corrupt it.
Here is what the response looks like from your system:
<br /> <b>Warning</b>: stream_socket_enable_crypto(): Peer certificate CN=<code>vps.guiadoexcel.com.br' did not match expected CN=</code>mail.guiadoexcel.com.br' in <b>/home/guiadoexcel/public_html/wp-includes/class-smtp.php</b> on line <b>344</b><br /> {"mailSent":false,"into":"#wpcf7-f6604-p4902-o1","captcha":null,"message":"Este erro n\u00e3o \u00e9 comum! Por favor envie um coment\u00e1rio informando que houve um erro no e-mail!"}The correct part of that starts with the curly brace then “mailSent” and so on. The stuff above it shouldn’t be there (that stuff is just a warning message about your certificate not matching up for mailing out [probably because you are on a test system or whatever]).
In order to fix this problem, you need to turn off WP_DEBUG or otherwise make it not display to the screen (you can make it go to a file instead). Exactly where and how to do this tends to vary, depending on how people are set up. Most likely you have it turned on in your main index.php or in wp-config.php or some file like that. Or, it might be in php.ini to cause errors to go to the screen. Basically, there are several ways and places to make it happen. You need to go get rid of yours or change it to go to a file or something like that.
Once you turn off the displayed errors then it should work.
Forum: Plugins
In reply to: [Email Before Download] Zero 0kb file downloadsGlad you got it working.
My guess is that your previous provider used Apache and your new provider is using nginx and that is the reason for the weirdnesses you saw. That would explain why just moving your existing files (and database) over to the new provider would not work. It might also explain why the problem with Chrome not displaying certain PDFs went away (maybe it’s an interaction between Chrome & Apache and how it handles byte-range requests for PDF files).
However, I would have expected that to be fixed when you made a new page with new contact form and new upload and made a new shortcode to use on that new page — that should have gotten all new stuff into the database and avoided any lingering old path problems. Oh well, who knows, but glad it works now… good luck.
Forum: Plugins
In reply to: [Email Before Download] EBD log not showing informationCould all 26 downloads be you rather than people out on the net? Maybe you are using proxy system and every time you accessed the file yourself (while you were setting everything up) the access came from one of a few proxy IPs that your proxy service uses? (farfetched guess, but possible)
Forum: Plugins
In reply to: [Email Before Download] EBD log not showing informationI think I understand. So in the EBD CSV file are you seeing corresponding entries to the Download Monitor log (in other words, are you seeing 26 lines for X download w/no email addresses associated)?
My guess is that somehow people are getting to your download file without going through the EBD form (you should get a notification email for everyone that goes through the form .. I assume when you tested it yourself you received 2 emails — one being the one with a link that goes to the email address entered on the form and the other being the notification email that tells the wordpress admin that someone downloaded something).
Have you tried running some of the IP addresses through whois? (the ip addresses that downloaded the file 26 times). Maybe they are mostly Google and other web crawlers…? Perhaps you have Indexes turned on (assuming you are running apache) and web crawlers are able to navigate down into your download directory. For example, a crawler might be programmed to guess “yoursite.com/download” and then see what it gets. Or even “yoursite.com/download/?” where ? is say, 1 thru 100, or something like that. Then, it might get into “yoursite.com/download/50” and if you had Indexes on then it would get a directory listing and be able to crawl any files in there.
If you don’t have Indexes on then that makes it tougher to figure out. Could you somehow have gotten your download file URL into your sitemap maybe? If you go into Download Monitor and edit your download then over on the right side near the top of the screen will be a URL. That URL will directly access your download file (without needing to go through EBD). Maybe that URL has somehow gotten out on the web & into google? Or maybe you’ve accidentally linked to it somewhere on your site?
If nothing else, you could go into Download Monitor and change your download point from “download” to something unguessable. Then, reset the download stats in Download Monitor & EBD. Then wait a few days and see if anyone manages to get to it.
Forum: Plugins
In reply to: [Email Before Download] EBD log not showing informationWhen you say “EBD log”, do you mean the CSV log file downloaded from the top of the EBD settings page?
I was a little unclear from your statement — it sounded like you’re saying there are no email addresses in that file but then you did a test using your own info and the email -did- show up in there? is that what you meant or am I misunderstanding it?
Forum: Plugins
In reply to: [Email Before Download] Zero 0kb file downloadsOh I see what you mean. Ok, well that’s odd but hopefully not a big deal.
On clearing the cache, it would be in the caching plugin if you are using one probably (like if you were using W3 Total Cache or Fast Cache or whatever). It’s probably not an issue, but just mentioning it.
How about that URL, did it work? I’m talking about the URL to access the file using Download Monitor (rather than EBD). Again, this is the URL in the top right area of the screen on like the detail type page of the download file (under “Downloads” in the WP menu then edit the download you are testing with and then look in the top-right area for that URL). Post that URL in here.
Forum: Plugins
In reply to: [Email Before Download] Zero 0kb file downloadsWhen you hit Submit on your test page it is giving a 500 Internal Server Error. Most likely there is an error being logged in an error log somewhere that would give you a clue as to the problem…
However, that may not be worth tracking down at the moment, since it sounds like you didn’t get the file uploaded the way I wanted. In Download Monitor (which is the “Downloads” link on the wordpress menu) you click “Add New” to add a new file. Type in a title (doesn’t matter what really) and click “Add File” button sort of in the middle of the page (NOT the “add media” button at the top). Clicking “Add File” will expand a panel and then you click “Upload File”. That will throw up the big pop up file box that you’re used to seeing probably. Click on the “Upload Files” tab to get over to the upload part. Click the “Select Files” button in the middle and that will throw up the local file browse popup where you can go find the file you want on your local system. Select the file and submit it to upload. Now it throw you back onto the “Media Library” tab of that popup and your file will upload and it will be selected. Click “Insert File URL” in the bottom right. Now you will be back on the main screen for that download in Download Monitor. Click “Publish” on the right side. Save the “ID” number from the top right area. Just under that is a URL which is the URL that should allow you to access that file from a browser using just Download Monitor (no Email Before Download). Log out or open a new different browser that isn’t logged into your wordpress. Paste that URL in there & make sure you can download the file. If you can, then we know the file is accessible via Download Monitor.
Now, go back to your test page and replace the download_id with the new download_id from the file we just uploaded and try again.
In some cases, it is necessary to move the file on the filesystem because the directory is protected. I don’t know if that’s the case for you … I did notice you’re using nginx and I’m not sure how it is configured by default … we’ll see…
Forum: Plugins
In reply to: [Email Before Download] Zero 0kb file downloadsThe best thing to do is:
make a new form in CF7. Make it the same as your old form, but it needs to be a new form so it gets a new ID.
Delete the existing download out of Download Monitor.
Upload the download file into Download Monitor again. You should have a new download ID for it now.
Go to your page and change your shortcode to use the new CF7 form ID and the new download ID.
At this point you can try to test again, though you might want to clear the server cache first if you’re using any kind of aggressive server-side caching via some caching plugin.
Forum: Plugins
In reply to: [Email Before Download] Zero 0kb file downloadsDo you have a URL to your page so I can try it (or can you make a test page)?
Did it used to work and now it doesn’t or are you basically setting it up for the first time and trying to get it working?
What is the shortcode you are using?
Forum: Plugins
In reply to: [Email Before Download] Download link shows blank pageWait … try this first …
edit the download associated with your new test page. Over on the right side you will see something that says “Force Download” or something like that. Make it checked. Then go test again. You might need to test it and then if it didn’t make a difference then change the “mask/hide” setting to the opposite of whatever it was and then test again.
Forum: Plugins
In reply to: [Email Before Download] Download link shows blank pageThat is damn strange.
I’m going to go walk through the code & see if I can come up with anything that could explain this … it’ll take a little while.
I hope this isn’t some weird IIS thing or Windows permission thing. I can’t imagine how it could be, but you’re the first person I’ve seen on azure, so just speculating. You might try turning off as many other wordpress plugins as you can. Now and then some weird conflict with some plugin will cause strange behavior .. unlikely, but it could be. Turn off your caching plugin, anything that has to do with URL changes or rewriting or permalinks, anything to do with ajax, anything to do with error-catching, etc.
Another option is turn on WP_DEBUG — however, you have to make sure the output goes to a file and not to the screen. If it’s set to go to the screen then it will break the ajax update (after you press submit).
You might try that stuff and I’ll update in a bit as to whether I’ve found anything or not…
ps – I’d still like you to upload a new file that is NOT a pdf & try again. In other words, upload a .jpg file into Download Monitor and make sure it has a filename you have never used. You can try replacing the download id in your existing test page shortcode … I’d actually prefer a whole new contact form & new wordpress page, but it’s probably ok to just replace the existing id with the id associated with the .jpg.
Forum: Plugins
In reply to: [Email Before Download] Download link shows blank pageok, lemme see…
Forum: Plugins
In reply to: [Email Before Download] Download link shows blank pageLeave it set for ‘both’ in the EBD settings (or set it to ’email’) AND turn on attachments (which is an EBD setting). We want to see if it can find the file to attach to the email (this avoids the link issue). This is just a test….
Forum: Plugins
In reply to: [Email Before Download] Download link shows blank pageYeah don’t worry about the random id number, that’s normal.
Hmm. Well this is unusual. Usually the steps we’ve done so far would have either clued us into the problem or would have worked. Couple more things we can try…
First, change it to “mask/hide” in the EBD settings and then test again. That changes the way EBD accesses the file, so it sometimes fixes weird problems.
If that doesn’t change anything then change it to “both” in the EBD settings and set it to do attachments. Leave it that way so I can test it with those settings (you can leave “mask/hide” checked or unchecked, doesn’t matter for this test).
Also, just to be sure, put your shortcode in here so I can make sure it looks ok.