Forum Replies Created

Viewing 15 replies - 181 through 195 (of 777 total)
  • just as a side note, I noticed this guy asked a support question and in it he happens to mention that he’s using EBD with the mailchimp extension, which makes me think it -should- work…. https://wordpress.org/support/topic/remove-email-from-inbox/

    Hmmmm. I’m not quite sure how that would happen … maybe your wordpress is setup to use your gmail account as your SMTP server (meaning wordpress would use your gmail account to send mail out)?

    I think your best bet is just to Filter it using the Gmail filter capability (ie log in to your gmail account via a web browser and then go to your Sent folder and pull up one of those emails and then choose to Filter Messages Like Those and you will get into the filter-rule creation interface and it will have taken a guess as to how to filter those out … just be careful you ONLY filter those out and not other stuff in SENT that you want to keep in there. I’d probably create some Label and then use the filter to move those emails out of Sent and over to that new label … that way you can go inspect them later or if too much stuff gets moved over then you can try to fix it).

    If you don’t want to do the gmail filter thing then you -might- be able to stop it by editing the CF7 form you made that you’re using for EBD and then change the From: on it to be something else [like not you] … no telling what that will do though.

    No. The intermediate step of the inline link(s) appearing and the website visitor clicking on one is required (or the other possibility being an email sent to the website visitor with the link for him to click or with the email having the file or files attached).

    Did you install the Download Monitor and Contact Form 7 plugins? Those are needed to make EBD work. (you should install the latest version of Download Monitor by the way).

    What is your shortcode?

    No it doesn’t support any of that…

    Hmm. I can’t think of a reason why #2 would fail if it definitely worked prior to you changing those field names. I wonder if there’s something else happening. I suggest you do the following (assuming you have done #2 … ie changed email-before-download.php):

    1. make a NEW form in Contact Form 7 and give it the appropriate field names to match your modified email-before-download.php. (the purpose of this step is to get a NEW id number for your form … we want a new id number, not the existing one, because it is now stored in the database and may be messing things up).

    2. upload a NEW file into Download Monitor. Give it a NEW filename that you haven’t used before. Again, the purpose here is to get a new download_id number and we want the file and filename to be new to ensure that everything is new.

    3. make a new test page in your wordpress and put your EBD shortcode in there using the NEW contact_form_id you got in step 1 above and the NEW download_id you got in the previous step. Make sure you use the new stuff .. if you accidentally use the old shortcode or its values you’ll need to start over.

    Ok, then test again and see what happens. If it gets stuck again, post a URL so I can go try it and see if I can see what’s wrong…

    I’ve never used this extension, but maybe try
    https://wordpress.org/plugins/contact-form-7-mailchimp-extension/

    Looking at the docs at this page it looks like it might do what you need
    http://renzojohnson.com/contributions/contact-form-7-mailchimp-extension/mailchimp-contact-form

    I think it just adds a “Mailchimp” tab to the existing Contact Form 7 edit screen and then you just put the your-name and your-email into the name and email fields on there and also your mailchimp ids and such. Looks simple.

    If that doesn’t work, I’d probably just edit email-before-download.php and change all 6 occurrences of your-email to whatever field name you want. And do the same for the 3 occurrences of your-name. Then save it. Then go edit your existing CF7 form and change your-email and your-name to the new names and then test it and see what happens.

    b8becb8, there’s not a fix for it because it’s not really a bug. There’s just some conflict between CSS on your site and the CSS that the plugin uses.

    If you post a URL I’ll take a quick look and can probably tell you what the conflict is.

    You should use the latest Download Monitor. Ignore that note about the old Download Monitor — you don’t have to use that (I would remove the note if I could, but I’m not the plugin author). Anyway, it works just fine with the latest Download Monitor.

    I have not heard of anyone getting 500 errors from Download Monitor. Did you look in your webserver error log file to see what message was getting logged? That usually leads you straight to the problem. Did you open a support item on the Download Monitor forum by chance?

    I’ll probably need to see your page so you’ll need to post a URL to it. However, you can try this stuff first:

    1. Make sure that in the form you made in Contact Form 7 that the name for your email field is “your-email” (without the quotes). I don’t think this is the problem, but double-check it just to be sure (the your-email is the name of the email field that you put in a kind of a shortcode sort of .. see the Screenshots page for an example if this is confusing).

    2. If you have “hide/mask” unchecked in the EBD Settings then check it and try again. Likewise if you currently have it checked then uncheck it and try again.

    lucapesci, I definitely think you should contact @ivanyordanov-1 via the ticket you have opened (or whatever). The fact that he responded on here is pretty impressive so maybe he can help. They are in a much better position to help with this than I am.

    To be clear, the problem you are encountering is that PHP notices/warnings/errors are going to the screen. When a user clicks Submit on the EBD form you created, the user’s web browser does an AJAX POST and gets back JSON in the response. If you have those notices/warnings/errors going to the screen, then a notice will get mixed in with the JSON response, which basically corrupts the response and causes the page to hang (because the javascript on the page is expecting clean uncorrupted JSON and instead that notice is mixed in. All you need to do to fix the problem is make PHP notices/warnings/errors log to a file instead of going to the screen (or turn them off entirely). That’s it.

    Just to add a little more info, the link (the a href) with the title of the download has 2 classes on it. One is “download-icon” and the other is “icon-button”. So you can use one of those as the target for some CSS that puts a download icon next to the link somehow.

    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 ๐Ÿ™‚

    Ok, I may have this figured out…

    It looks like you’re using SiteGround as your hosting company. I looked through their support knowledge base and found an article that has some comments on it that I think will help us get this fixed. The article isn’t perfectly on point, but the 9 comments below the article are pretty helpful:
    https://www.siteground.com/kb/how_to_modify_php_settings_without_using_phpini_files/#comments

    So the SiteGround support people are basically saying that they force PHP to display all errors/warning/notices and you can’t turn it off by the normal methods like we trying (like where we tried putting the ini_set() commands in email-before-download.ph). Instead, you have to either use their “PHP Variables Manager” tool or you can make your own php.ini file and put it in the directory where you want it to take effect.

    When you talked to the hosting people, did they try all that stuff already? You didn’t really say in your previous update. Anyway, here’s what I think you should do:

    First, double-check your wp-config.php file and make sure that kind of near the bottom there is still this line:
    define(‘WP_DEBUG’, false);
    Note that needs to be before the line that says /* That’s all, stop editing! Happy blogging. */

    Ok, next, change EBD settings back to ‘inline’ rather than ’email’ so that we’ll be able to test and see if it fixes the issue.

    Now, I don’t know if you’d prefer to use the PHP Variables Manager or if you want to do a php.ini for just the EBD plugin directory. That’s kind of up to you. I would probably just make a file and put just this 1 line in it:

    ini_set(โ€˜display_errorsโ€™,โ€™0โ€™);

    and save that file and call it php.ini and the ftp it up to your site and put in the EBD plugin directory (wp-content/plugins/email-before-download).

    Then start up a browser and go your EBD test page and try again and see if it works. If it works then I would add the following line to php.ini

    ini_set(‘log_errors’,’1′);

    and then test again and if it still works then you’re done and all is good (just remember that fro now on PHP errors are going to go to the normal error location for that server, which is probably accessible through something on your cpanel).

    If doing the php.ini stuff I detailed above didn’t fix the problem, then do the following;

    get rid of that php.ini file
    go to your cpanel and go to PHP Variables Manager
    you will get a screen that has a little tool to let you browse through the directory structure of your site.
    using that little tool go to the wp-content/plugins/email-before-download/ directory
    Now you’re gonna Add and for the variable name type in display_errors and then another field will appear for the value of that variable and you should put a 0 in there (that’s a zero). Then save it (don’t check the ‘apply to all subdirectories’ option).
    now go test again and see if it works now

    It’s possible that the PHP Variables Manager tool really just writes out a php.ini. I couldn’t tell from the instructions if that’s all it did or if it worked in some other way. Anyway, it’s possible that it just writes out a php.ini (just like we already tried), in which case it probably won’t work just like it didn’t work when we make our own php.ini, but whatever, you can give it a try as a last resort.

    Just to be clear, all of this seems to be the result of your hosting company’s rather silly defaults for their PHP error reporting. sigh.

    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=0bd9e732d947e0922b5d11617d269500

    Looking 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.

Viewing 15 replies - 181 through 195 (of 777 total)