Page 1 of 1

WP Multisite Network - Permissions and _SERVER[HTTP_HOST]

PostPosted: November 4th, 2011, 10:44 am
by daverati
I have a WordPress multisite network set up with two sites: domain.com and subdomain.domain.com.

I had initially created my PayPal button shortcode in S2Member in the WordPress backend of domain.com, embedded the button in domain.com, and made test payments that went through fine. However, new members were not able to access the member content in subdomain.domain.com.

So, I re-created the PayPal button shortcode, this time in subdomain.domain.com, and replaced the button embedded on domain.com. After doing that, once a new member pays for their membership and is being redirected back to subdomain.domain.com, they get this error:

"ERROR: Unable to verify _SERVER[HTTP_HOST]. Please contact Suppport for assistance.

"If you are the site owner, please check the 'custom' value in your Button Code. It MUST start with your domain name."

I have checked the 'custom' value and it says: subdomain.domain.com. Should I change it to domain.com?

Any thoughts? Thank you.

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 4th, 2011, 10:45 am
by Eduan
Try changing it to domain.com.

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 4th, 2011, 11:08 am
by daverati
Thanks. That solution actually eliminated the error and got me redirected after payment back to the site successfully.

However, now every email I try to register with the site kicks back an "ERROR: This email is already registered, please choose another one" message. What now?

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 4th, 2011, 11:35 am
by daverati
Well, it seems I had used those email addresses for testing of the site previously. And even though I deleted them from Admin > Users, they must still be in the database. I found a previously unused email address that worked. I was able to get registered.

But now I still have the same original problem: the new member get registered but is denied access to the member content in subdomain.domain.com.

Does anyone here have experience with a WP multisite installation and granting access across those sites to registered members?

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 4th, 2011, 11:48 am
by Eduan
Do you have a MS Network Support License + s2Clean Theme ( all inclusive ) license or any other license for s2Member Pro?

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 4th, 2011, 11:53 am
by daverati
No, I do not have the Network Support License or Pro. I installed the standard plugin based on this info:

"Is s2Member compatible with Multisite Networking ?
"Yes. s2Member, and also s2Member Pro, are BOTH compatible with Multisite Networking enabled. After you enable Multisite Networking, install the s2Member plugin. Then navigate to s2Member -> Multisite ( Config ) in the Dashboard on your ( Main Site )."

Also, I have a Classipress directory set up on subdomain.domain.com. I need my members to be able to post in the directory after purchasing a membership. If I choose the Blog Farm option, will that give them access to the member content (the directory) in subdomain.domain.com?

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 4th, 2011, 12:10 pm
by Eduan
Okay, it's true s2Member free and Pro are both compatible with multisite network and blogfarms and such, but they don't come with the documentation required to set them up correctly.

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 4th, 2011, 1:02 pm
by daverati
Can't really afford the $289 for documentation and support at the moment, so I'll see how far I can get on my own...

Thank you for your help.

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 5th, 2011, 10:33 pm
by Cristián Lávaque
Dave, it's important to understand that, although s2Member will work in the network blogs, each blog will have its own instance of s2Member, independent of the others. So if you have a user with access in a blog, that won't give him access in other blogs of the network.

I hope that helps. :)

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 6th, 2011, 9:05 am
by daverati
So Cristian, you're saying there really is no way for me to automatically give members access to both blogs with one PayPal purchase? Hmm...

Okay, thanks for the info. It will help me stop banging my head on trying to pursue one solution. Now I can move on to another.

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 6th, 2011, 9:39 pm
by Cristián Lávaque
I'm not very experienced with multiste, Jason's the expert with that. See if this helps in any way: viewtopic.php?f=4&t=15385&p=44770#p45159

Hope that helps.

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 7th, 2011, 11:26 am
by daverati
Thanks, Cristián. Unfortunately, my site use a subdomain rather than a subdirectory, so I'm not sure that advice will help. Also, I've already started moving all of the member content to the subdomain. I'll try that plus disabling s2Member in the primary domain.

Re: WP Multisite Network - Permissions and _SERVER[HTTP_HOST

PostPosted: November 8th, 2011, 1:27 am
by Cristián Lávaque
Got ya.