Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-20T18:56:10-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15529 2011-10-20T18:56:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15529&p=48447#p48447 <![CDATA[Re: Simple download link not working]]>
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:
<?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

Statistics: Posted by Jason Caldwell — October 20th, 2011, 6:56 pm


]]>
2011-10-14T12:53:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15529&p=46880#p46880 <![CDATA[Re: Simple download link not working]]>
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.

Statistics: Posted by S2Rick — October 14th, 2011, 12:53 pm


]]>
2011-10-14T12:38:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15529&p=46879#p46879 <![CDATA[Re: Simple download link not working]]> Statistics: Posted by S2Rick — October 14th, 2011, 12:38 pm


]]>
2011-10-14T04:55:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15529&p=46846#p46846 <![CDATA[Re: Simple download link not working]]> 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

Statistics: Posted by MikeS2M — October 14th, 2011, 4:55 am


]]>
2011-10-13T17:50:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15529&p=46827#p46827 <![CDATA[Simple download link not working]]> 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!

Statistics: Posted by S2Rick — October 13th, 2011, 5:50 pm


]]>