Page 1 of 1

DMG file downloads not being mounted.

PostPosted: December 30th, 2011, 4:50 pm
by Deyson
Hello, I have to ways for people to download my files.

The free files I am using Download Monitor. And all my Member files are going through S2member downloads.

I just got a call from a member and they said that their DMG downloads are not being recognized when they try to mount them. I went to investigate and they are right all the DMG member files do not mount once downloaded, the error message reads “not recognized ", but the free DMGs files open properly.

Any ideas on what may be happening, my site has been working fine for the last year.

Thank you.

Re: DMG file downloads not being mounted.

PostPosted: December 30th, 2011, 5:06 pm
by Deyson
Here is an update. If I move the files one folder up to the plugins folder and download the DMG from there, it mounts fine once downloaded, but if they are downloaded from the S2Member-Files folder the DMG do not open saying they are not recognized.

Re: DMG file downloads not being mounted.

PostPosted: December 31st, 2011, 6:13 am
by Cristián Lávaque
I'm emailing Jason about this.

Re: DMG file downloads not being mounted.

PostPosted: December 31st, 2011, 8:38 am
by Jason Caldwell
Hi there. Thanks for the heads up on this thread.

I would try disabling s2Member's chunked file delivery to see if it resolves the issue.

See this thread for further details on how to create the hack file please.
viewtopic.php?f=4&t=16510#p59338

Also, who is your hosting provider please?

Re: DMG file downloads not being mounted.

PostPosted: December 31st, 2011, 2:28 pm
by Deyson
I will give it a try. My hosting company is Jaguar PC.

Re: DMG file downloads not being mounted.

PostPosted: December 31st, 2011, 4:17 pm
by Deyson
It turns I already have that hack in my /wp-content/mu-plugins/s2-hacks.php file.

I was being told that the page was not found error, so I added that hack and it fixed the problem but now my DMG files are being downloaded as unrecognizable.

Any other suggestions? Thank you.

Re: DMG file downloads not being mounted.

PostPosted: January 2nd, 2012, 9:58 am
by Deyson
Hello, I just wanted to point out that this error has not been resolved with the Hack.

Please let me know what I can do in the meantime, as members are not able to download their files.

Re: DMG file downloads not being mounted.

PostPosted: January 2nd, 2012, 10:41 pm
by Jason Caldwell
Thanks for the follow-up.

Well, s2Member has three ways to deliver a file.

1. Via Transfer-Encoding: chunked.
( you can disable this via this filter )
Code: Select all
<?php
add_filter
("ws_plugin__s2member_chunk_file_downloads", "__return_false");
?>


2. Via Flushed delivery of data chunks.
( you can disable this via this filter )
Code: Select all
<?php
add_filter
("ws_plugin__s2member_flush_file_downloads", "__return_false");
?>


3. As a last resort, s2Member can use a standard call to file_get_contents().
( If you disable both of the primary delivery channels, s2Member will automatically fall back on this )
Code: Select all
<?php
add_filter
("ws_plugin__s2member_chunk_file_downloads", "__return_false");
add_filter("ws_plugin__s2member_flush_file_downloads", "__return_false");
?>
* I would try this now.

Re: DMG file downloads not being mounted.

PostPosted: January 3rd, 2012, 6:59 am
by Deyson
Hello Jason, thank you and here are my results after updating s2-hacks.php file as you requested.

- The first code gave me a not recognized DMG warningafter I downloaded and opened the DMG file.

- The second code redirected me to a 303 error page on Safari.

- The third code also gave me a not recognized DMG warning after I downloaded and opened the DMG file.

So I am still stuck. :)

Please let me know what else I can do. Thank you and have a wonderful day. :)

Re: DMG file downloads not being mounted.

PostPosted: January 3rd, 2012, 1:56 pm
by Harty
Hi. Do you have a friend or colleague who is also using s2m? If so, why not send them one of your DMG files and have them make it a protected download, then see if it can be downloaded successfully.

Re: DMG file downloads not being mounted.

PostPosted: January 3rd, 2012, 2:06 pm
by Deyson
I do not have a friend or colleague that uses s2m. If you would like to give it a test for me I would be much appreciative.

There are 4 free DMGs on my website: www.motion-master-templates.com

Thank you and have wonderful day.

Re: DMG file downloads not being mounted.

PostPosted: January 3rd, 2012, 5:58 pm
by Raam Dev
Hi Deyson,

Could you take a look at this thread and see if it helps? viewtopic.php?f=4&t=16510#p59497

Re: DMG file downloads not being mounted.

PostPosted: January 3rd, 2012, 6:06 pm
by Deyson
Woo Hoo!!! Thank you! That was it :)

Much thanks :) Have a wonderful day!

Re: DMG file downloads not being mounted.

PostPosted: January 3rd, 2012, 6:18 pm
by Raam Dev
You're most welcome! Glad to hear that solved it! :)