Page 1 of 1

Simple download link not working

PostPosted: October 13th, 2011, 5:50 pm
by S2Rick
I have a simple download link on a wordpress post.
Wordpress 3.2.1. s2member Version 111011

http://www.****.com/?s2member_file_down ... e-file.zip

The file example-file.zip is in wp-content/plugins/s2member-files
There is no htaccess file and properties of directory is 755
The file is a small 44K.

Chrome and firefox both report file is not there after I click OK on confirm download.

I did notice that s2member says :

Upload restricted files to this security-enabled directory:
/hermes/web11c/b2837/moo...

but my control panel for my site says the doc root is:

/home/users/web/b2837/moo...


any ideas?

Thanks for any help!

Re: Simple download link not working

PostPosted: October 14th, 2011, 4:55 am
by MikeS2M
I had a similar issue yesterday with testing my first s2Member installation.
I suggest you check alternative locations manually with your FTP program.

This is what I mean:

I uploaded an image to replace the s2Member logo in the member login page via the General Options panel as instructed but it never showed. It should have been at .../wp-content/uploads/image.jpg
I checked the folder manually via my FTP program. The image file was not there.
I then uploded it manually to the location listed in the General Options panel. The image appeared on the login page as it should.
When I checked further down the line, I found the original uploaded file in .../wp-content/image.jpg instead of .../wp-content/uploads/image.jpg

No idea why it would have been placedin the wp-content folder instead of the wp-content/upload/ folder. Perhaps some internal problem with s2Member? Has anyone else encountered this problem?

Max

Re: Simple download link not working

PostPosted: October 14th, 2011, 12:38 pm
by S2Rick
Thanks for that suggestion, but I transferred the file with ftp. I did however do a double check and it is there as expected.

Re: Simple download link not working

PostPosted: October 14th, 2011, 12:53 pm
by S2Rick
Ok

I have completely reinstalled s2member and same problem.

I put in a direct link to the file (bypassing s2member call and it works. The zip file can be downloaded.

So it is definitely s2member getting confused about where to find the file.

Is there any where in the s2member code I can put a print statement so I know exactly what directory it has tried to find the file in?

Now this is weird.

On another machine using firefox I can download the file using s2member The link using s2member key does not work logged in or not.

Please give me some clues how to trouble shoot what is going on here.

Re: Simple download link not working

PostPosted: October 20th, 2011, 6:56 pm
by Jason Caldwell
S2Rick wrote:Is there any where in the s2member code I can put a print statement so I know exactly what directory it has tried to find the file in?

s2Member displays this information in your Dashboard, under: s2Member -> Download Options -> Basic Download Restrictions. But yes, please create this directory and file if you want to debug further:
/wp-content/mu-plugins/s2-debug.php ( mu = MUST USE plugins, that's what you want )
Code: Select all
<?php
add_action 
("init", "s2_debug");
function s2_debug ()
    {
        if (!empty ($_GET[__FUNCTION__]))
            exit ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["files_dir"]);
    }
?>
* Now load up this URL on your site:
http://example.com/?s2_debug=yes