PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Simple download link not working

s2Member Plugin. A Membership plugin for WordPress®.

Simple download link not working

Postby S2Rick » October 13th, 2011, 5:50 pm

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!
User avatar
S2Rick
Registered User
Registered User
 
Posts: 6
Joined: July 28, 2011

Re: Simple download link not working

Postby MikeS2M » October 14th, 2011, 4:55 am

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
User avatar
MikeS2M
Registered User
Registered User
 
Posts: 8
Joined: October 7, 2011

Re: Simple download link not working

Postby S2Rick » October 14th, 2011, 12:38 pm

Thanks for that suggestion, but I transferred the file with ftp. I did however do a double check and it is there as expected.
User avatar
S2Rick
Registered User
Registered User
 
Posts: 6
Joined: July 28, 2011

Re: Simple download link not working

Postby S2Rick » October 14th, 2011, 12:53 pm

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.
User avatar
S2Rick
Registered User
Registered User
 
Posts: 6
Joined: July 28, 2011

Re: Simple download link not working

Postby Jason Caldwell » October 20th, 2011, 6:56 pm

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
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron