Viewing 15 replies - 16 through 30 (of 95 total)
  • Ok, I assume you made a backup copy of email-before-download.php and put it off in some other directory, per my earlier instructions. Do the same now for download.php because we need to change that too.

    Alright, this may not work, but we’ll give it a shot and see .. if it doesn’t work, you can put your backup copies of those two files back in place & then check back in a day or two after I’ve updated with a better solution.

    Ok, you need to change WP_PLUGIN_DIR to this exact string:
    plugin_dir_path( __FILE__ ).”..”

    That __FILE__ inside the parentheses there is two underscores then the word FILE then two underscores and that’s all together. I have a space after the starting parenthesis and a space before the ending parenthesis, but that spacing doesn’t really matter. After the closing parenthesis is a period then a double quote then two periods then another double quote. So all of that replaces the word WP_PLUGIN_DIR and you leave everything else on the line alone (what comes after it is a space then a period then a space then “/download-monitor/” and some more junk after that.

    So for example, here is what line 147 of email-before-download.php should now look like:
    $pd = &get_file_data( plugin_dir_path( __FILE__ ).".." . "/download-monitor/download-monitor.php", array("Version"=>"Version"), 'plugin');

    I gave you that example and spelled out the exact changes because I’m not certain if you can cut’n’paste out of this wordpress forum and get the right characters or if it would give you like html junk or something. You may be able to cut’n’paste it, which would be easier, but pay attention & make sure it looks right.

    Anyway, give that a shot. So it’s 3 lines you’re changing in two files. Then, retest and see if that’s any better and let me know on here.

    WP_PLUGIN_DIR occurs on line 147 and line 378 of email-before-download.php so you’ll change it in both places there. It also occurs on line 25 of download.php so you’ll change it there as well.

    Thanks very much for the suggestion, I’ll try and let you know the outcome.

    Unfortunately the changes did not fix the issue nor did it precipitate an error. The symptom of the apparently correct URL displays but the file is not served to the user for download.

    In case it is useful to know, I use the Edit File URL option when specifying the download file, rather than uploading it. I used this approach because I found a problem in the past with using the upload from within Download Manager.

    I just tried your site and it is currently downloading a 6.2 MB file called advansys-recolix.msi (it’s about 1.6 MB so far). In the end, it may fail, but at least for now it appears to be working…

    That said, it automatically started the download once I pressed Submit (I believe .. pretty sure I didn’t click the big blue Download Recollx Professional 1.2 Beta button). It may have autodownloaded because I have the Chrome Devtools turned on & it set to not cache stuff, but I haven’t seen it do that before.

    Let’s see, it’s almost done…. ok, yeah, it worked. I have a 6.2MB download file now. I’ll try again and see if it did indeed autostart the download

    Sorry dtynan, it is a red-herring. I have done a ‘quick-n-dirty’ by putting the following line in the Additional Settings of my Contact Form 7 download form:

    on_sent_ok: “location = ‘https://www.recollx.com/%5Blocation%5D/advansys-recollx.msi’;”

    I was about to post the fact I’ve done it but you beat me to it!

    Ok I just tried again, this time with Firefox rather than Chrome. As soon as I press Proceed To Download on the form it pops up a file save window to save the .msi file. It also changes the page to show the big blue download button. After it downloaded the .msi, I went ahead and clicked the big blue download button and Firefox displayed a “The page isn’t redirecting properly” error.

    ah ok, just saw your update

    can you remove that location on the on_sent_ok for a couple minutes so I can try again and see exactly what it does?

    nevermind, let me work on it on my end and come up with a workable solution tomorrow sometime. thanks for trying that stuff though, that helps. i’ll update as soon as possible….

    No problem, thank you!

    BTW, if you want me to remove the work-around at any time, just let me know.

    In the meantime, if you have a couple of minutes & want to try something else, I think you should upload a new file (using a new file name that you have never used before). It should get a new Download ID number. Change your shortcode to use the new Download ID and resave your page (or, preferably, make a new test page & put the new shortcode with the new Download ID in that page). Then test that.

    In certain situations, Email Before Download can retain information from past attempts (like a bad filename). If you try and change things but continue using the same shortcode, it may have trouble. Thus, it may be worth a few minutes to do a new file name & get a new downloadID and either update your shortcode or make a new page as I said.

    I can try this a little later but I have another site which uses Email Before Download and it exhibits exactly the same problem after the WordPress 4.4 update. In addition, another person has mentioned the same symptom. Maybe the db content has become corrupted due to the 4.4 update but it would have to be something common to all these sites. I’ll let you know how it goes.

    I added a new test file download and get the same result prior to the work-around.

    Test page: https://www.recollx.com/download-form-test/

    I’ll have to look into developing some PHP debugging skills. ??

Viewing 15 replies - 16 through 30 (of 95 total)
  • The topic ‘Not working on www.ads-software.com 4.4?’ is closed to new replies.