Hi, I'm having trouble with a very minimal Membership setup. Basically, what's happening is that my protected content pages are throwing 404 errors instead of showing the 'No Access' page I've defined in the Membership settings.
My configuration:
Wordpress v3.2.1
Membership v2.0.7
Two membership levels: Visitor, Premium
Stranger setting: Visitor
Level settings:
Visitor - one negative restriction. Cannot view the page "Studio"
Premium - no restrictions
I've created a page called "No Access." This page is visible to Visitors and Premium members both, no problem. This page is set as the Protected Content Page in the Membership options.
Created a page called "Studio." As mentioned above, Visitors are barred from viewing this page. Logged in Members are able to view the page fine. When a Visitor attempts to view the page, I'd expect the 'No Access' page to be shown -- instead a 404 error page is being returned.
I've tried both settings for "Override 404 with protected content page" -- no change.
I've tried changing the permalink settings back to defaults.
I've tried creating whole new "Studio" and "No Access" pages, and reassigning them in the Membership options. Same problem.
No PHP errors being thrown to error.log. Here are the two lines from access.log:
For a logged in member:
127.0.0.1 - teleotic [27/Jul/2011:22:24:39 -0700] "GET /changemaking/studio HTTP/1.1" 200 4315 "http://mydomain.org/changemaking/" "Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0"
For a visitor:
127.0.0.1 - - [27/Jul/2011:22:29:28 -0700] "GET /changemaking/studio/ HTTP/1.1" 301 611 "http://synergiesinsync.org/changemaking/2011/07/studio/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.124 Safari/534.30"
127.0.0.1 - - [27/Jul/2011:22:29:28 -0700] "GET /changemaking/2011/07/studio/ HTTP/1.1" 404 3904 "http://synergiesinsync.org/changemaking/2011/07/studio/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.124 Safari/534.30"
So what it looks like to me is that the Membership plugin is throwing a redirect, but instead of sending the Visitor to the 'No Access' page, it's sending them to what would be the permalink if it was a post instead of a page.
For good measure, here's my .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /changemaking/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /changemaking/index.php [L]
</IfModule>
# END WordPress
Halp! Any assistance would be appreciated.
Thanks,
Tim