Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › eMember – Downlaod Protected Folder not working
- This topic has 15 replies, 7 voices, and was last updated 9 years, 8 months ago by wzp.
-
AuthorPosts
-
September 6, 2012 at 10:18 am #7340superman50Member
Hi,
I have setup eMember on my site and I sell digital products, I store all my files in the protected folder but it is not working.
I have created a user account and try downloading the files which I stored in the download protected folder and it keep asking for username and password.
Just a side note, I have already tried logging into eMember from the main site before downloading the files and it is not working either.
September 6, 2012 at 10:45 pm #49036PeterMemberPlease see this post which might help you:
September 7, 2012 at 5:00 am #49037superman50MemberI know about that method, what I want to achieve is by using the “Download Folder Protection” (found in the Admin Functions within eMember panel) method as mentioned above. The protected folder is not working as described above, how can I fix it?
September 8, 2012 at 12:07 am #49038adminKeymasterJust to clarify… The following has to happen to be able to download file from the protected folder:
1) You need to be logged into the site as a member.
2) You do need to enter the username and password every time you click on the download link
After you do step 2, it doesn’t download the file?
Are you using Apache for your web server? Your hosting provider will be able to answer this for you if you don’t know.
March 23, 2014 at 8:13 am #49039mbaseSpectatorNot working for me either. I’m using Hostgator.
I click on a link for an Mp3 in the protected download folder and nothing happens, no username & password request, no file playing, nada.
Too bad, would’ve been a great solution for me. But I guess I’m going to go back to the normal protection method. All the members having to continually put in their passwords would be a drag for them anyway.
February 11, 2015 at 12:02 pm #49040christian-martensMemberHi, I have had the same difficulties.
The solution that worked for me:
I have installed wordpress in a subfolder, but wanted to make it accessible from the domain root.
A How-to is explained here:
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Instead of
domain.tld/wordpress/your-content
I now have
domain.tld/your-content
After activating the download protection, eMember writes something to the htaccess-file.
Please check the server path, because maybe eMember is not able to give the whole server path.
In my case, there have not been the right directories.
For instance:
<IfModule mod_rewrite.c>
ErrorDocument 403 /wp-content/plugins/wp-eMember/emember_folder_protection_download_error.htmlhas to be
<IfModule mod_rewrite.c>
ErrorDocument 403 /wordpress/wp-content/plugins/wp-eMember/emember_folder_protection_download_error.htmlMaybe this helps.
After giving the correct server path, user authentication works fine.
Regards.
February 11, 2015 at 10:42 pm #49041adminKeymasterThank you for sharing your tweak.
February 19, 2015 at 8:10 am #49042Rikk03MemberEven after all the above advise, I still can’t get it to work.
Yes wp is installed into a subdirectory. I am using Bluehost
I know the root path and it looks to be correct in the htaccess file.
/home/xxxxxx/public_html/xxxxxx/wp-content/uploads/emember/downloads/
The user login request just keeps popping up after entering the user and password. No file download.
Thoughts?
February 19, 2015 at 8:16 am #49043Rikk03MemberI tried the following
/home/xxxxxx/public_html/xxxxxx/wp-content/uploads/emember/downloads/
/xxxxxx/public_html/xxxxxx/wp-content/uploads/emember/downloads/
/public_html/xxxxxx/wp-content/uploads/emember/downloads/
/xxxxxx/wp-content/uploads/emember/downloads/
/wp-content/uploads/emember/downloads/
February 19, 2015 at 8:33 pm #49044Rikk03Memberspoke with hosting provider, say the pathway is correct, the images load if the security is switched off in the admin section.
Seems like ive hit a dead end.
Suggestions?
Please confirm if relative path or absolute path required.
February 20, 2015 at 6:10 am #49045christian-martensMemberHey Rikk,
you are giving the server root, which is not correct.
To make it working just use the base path of your WordPress installation.
Maybe you have different domains on your server, so being in different folders.
Maybe one is for domain a:
/home/xxxxxx/public_html/xxxxxx
Maybe second is for domain b:
/home/xxxxxx/public_html/yyyyyy where wordpress is installed in a subfolder.
So give ist a try with just
/wordpress/path-to-the-rest
instead of full path or instead of leaving out the subfolder.
Just use simple everything after your domain name as given to u in
Wordpress general settings.
U know the wordpress address, and you know the page address.
In general, when wordpress is installed in a subfolder, eMember uses
actually the page url, the only thing to change is just to add
ONE
single folder – just add the folder where wordpress is installed.
No hole root path. I guess that would work.
Chris
February 20, 2015 at 9:38 am #49046Rikk03MemberAuthUserFile /xxxxx/wp-content/uploads/emember/downloads/.htpasswd
AuthUserFile /wp-content/uploads/emember/downloads/.htpasswd
Do not work
February 23, 2015 at 7:36 am #49047Rikk03MemberIt seems to be a theme conflict.
I deactivated all plugins apart from emember and the problem still occurs. I login and instead of downloading the respective file, I just get a white screen?
The theme blocks user dashboard access – everything is done from the front end.
Any thoughts.
Theme im using is Geotheme latest version.
February 23, 2015 at 11:17 pm #49048adminKeymasterIf it is an issue with the theme blocking access to the dashboard then you won’t be able to use this feature while using that theme unfortunately.
March 5, 2015 at 10:06 am #49049Rikk03MemberIm just going to switch off the folder protection and chmod the folder to 700. Tested it and it seems to work just fine.
One question though ….. will the members only download addon work? How does this plugin work?
-
AuthorPosts
- You must be logged in to reply to this topic.