Solved -> S2member plugin: WP Login not work & ACP Blank

Greyhart
User w
User w
Posts: 5
Joined: Tue Jun 28, 2016 4:56 pm

Solved -> S2member plugin: WP Login not work & ACP Blank

Post by Greyhart »

First off, what you've got here, if I can get it to work, is awesome!

Now my problem...

I am using w3all v1.4.6 and the latest versions of WordPress & phpBB

With w3all active, the only user that can log in, is the Administrator. Every other account gets redirected to my home page without being logged in. I use s2Member for access control and payment functionality. I suspect the two plugins are not playing well together. If w3all is deactivated, I get normal logon functionality back.

Also, when I click on the link I created to go to the forums (which are in a subdomain) I see my Admin user listed as logged on in phpBB, but phpBB still sends me to a logon screen with my logon information prefilled. It doesn't seem to recognize that I am the Admin user.

In fact, once I log on as the Admin user, it shows 2 users online, one registered, one guest.
Logged in.jpg
Logged in.jpg (67.98 KiB) Viewed 3694 times
Once I log on, I am unable to get to the ACP. It just displays a blank page. With w3all deactivated, I am unable to log into phpBB as the Admin user at all, it just keeps redirecting me to the login page.

I reset the phpBB cookie to .witchcraft-academy.com
The php.ini already had the openbase_dir commented out
I added the extra lines of code to the functions.php

When I added the Paths to the WP plugin side, it logged me out as expected. As far as I can tell, I have everything correct. I am not using the Last Topics or Embed Template, as I want the users to click a link within a protected section (using s2Member) in order to get to the forum.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WP Login & ACP Blank

Post by axew3 »

Hi, ok i will take a look within today, installing on a clean WP first time wp_w3all, testing anything i can about it.
Have instead you try to see if wp_w3all run ok, if s2Member is switched off? Had you possibility to test out?

I will so install s2Memeber plugin if it is free, on fly, to see what happen.

p.s ACP blank can't be a wp_w3all problem i suppose.
Greyhart
User w
User w
Posts: 5
Joined: Tue Jun 28, 2016 4:56 pm

Re: WP Login & ACP Blank

Post by Greyhart »

axew3 wrote:Hi, ok i will take a look within today, installing on a clean WP first time wp_w3all, testing anything i can about it.
Have instead you try to see if wp_w3all run ok, if s2Member is switched off? Had you possibility to test out?

I will so install s2Memeber plugin if it is free, on fly, to see what happen.
I have not tried deactivating s2member, since it takes over the wp login functions completely. You can find the free version of s2member at http://s2member.com

You night find the following useful, it documents the s2member API. http://s2member.com/kb-article/pro-api- ... perations/
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: WP Login & ACP Blank

Post by axew3 »

OK login on it has been fixed, it was very easy, a 2 seconds fix: i've try out a test, to check the latest code (and a fresh subdomain wp_w3all install done in 2 min), that can easily substitute on fly any other login. So also the login of S2member fix has been added.

That's was all the necessary to fix this plugin login.

This file, ext_plugin_fixes.php, added into wp_w3all since 1.4.5 can solve the login problem of any external plugin (excluded frontend ajax plugins that reset $_POST onlogin). So adding just two simple instructions the login problem with s2memeber has been solved.

Also registration page work well, this without any modification.
(on 1.4.7 hope to remember to add the fix for registration pages also for another that was asked time ago). This instead fix what you was asking for, login on s2member plugin (and some other that use same vars names onlogin):

Replace the file ext_plugin_fixes.php in wp-content/plugins/wp-w3all-phpbb-integration/addons with this file
1.4.7_ext_plugins_fixes.zip
Replace the file ext_plugin_fixes.php in wp-content/plugins/wp-w3all-phpbb-integration/addons with this file
(1.21 KiB) Downloaded 251 times
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Fix S2member WP Login & ACP Blank

Post by axew3 »

p.s as said above. ACP blank instead can't be a wp_W3all problem.
Greyhart
User w
User w
Posts: 5
Joined: Tue Jun 28, 2016 4:56 pm

Re: Fix S2member WP Login & ACP Blank

Post by Greyhart »

Ok, I just uploaded the new file and I am able to log in as a test user. When I click the link to the forums, I bypass the logon, and go straight to the forums.
axew3 wrote:p.s as said above. ACP blank instead can't be a wp_W3all problem.
I think the issue is that the forum seems to think I'm already logged on as Admin. Logged on as the test user, I can see when the Admin user logs out of WP. When the Admin user logs in to WP, it shows 3 users, two registered, one guest. I'll check the phpBB forums, but you know they're going to say it's w3all. :P
Post Reply