Page 1 of 1

WordPress or S2Member plugin issue? “Could not authenticate"

PostPosted: March 15th, 2011, 1:28 pm
by SiteSubscribe
In the last couple of weeks I have received the following error when publishing, editing and updating, permanently deleting, or even restoring a post:

"Could not authenticate you."

The whole screen goes white/blank except for this message. And sometimes the post is not saved or updated (thereby losing my work).

The URL varies, but is something like this:
http://mysite.com/wp-admin/post.php

Also sometimes on the post editor screen it says "You do not have permission to do that.".

I'm logged in as Admin under another username other than "Admin". If I hit the browser back button I'm still logged in and can view the dashboard or other things like plugins, but certain things lock me out (like editing a post/page on root site or other site).

I'm paranoid now, but with just cause...I've got to the point that I save all of my post html into a separate text editor in precaution of the post not saving and thereby losing my work (which has happened several times now).

In some cases I notice that my credentials are expiring and after a few retries WP throws me back to the login screen (without saving my work), forcing a re-login, and then re-creating my post that did NOT save. This could possibly(?) be separate login timeout issue not related to the 'not authenticating' issue.

BROWSER?
I cleared FF cache & cookies. Same result. The post is saving but still throwing me to the blank error screen (hitting back button reveals updates were saved). I tried updating post in Safari, same result (reducing possibility it is browser related).

WP-CONFIG?
Could be related to WP nonce in wp-config 'Authentication Unique Keys'?

I generated new wp-config keys using: http://api.wordpress.org/secret-key/1.1/wpmu/salt

I re-logged in. Same result.

I noticed NONCE_KEY & NONCE_SALT were not generated using the api. After logging into network admin WP responded by providing nonce keys in network admin screen.

I updated wp-config nonce.

Tried to update post in root site. Same.

I looked for "Could not authenticate you" in the plugins directory and couldn't find it.


Firefox, Mac, WP3.1 multisite

S2Member Version: 3.5.2, Stable tag: 3.5.2, Framework: WS-P-3.5

I can't make any updates to my site content. Any ideas?

Re: WordPress or S2Member plugin issue? “Could not authentic

PostPosted: March 15th, 2011, 4:48 pm
by Cristián Lávaque
Do you check the "remember me" box when you log in?

Does this also happen without any plugins installed?

Re: WordPress or S2Member plugin issue? “Could not authentic

PostPosted: March 24th, 2011, 2:57 am
by SiteSubscribe
Sometimes I check 'remember me', but...by default, WordPress makes your login session cookie expire in 48 hours (or on browser close), or 14 days if you check the "Remember Me" box.

I'm getting kicked out by what seems like an action (publishing a post) rather than a time measurement. I can hit my browser back button and I remain logged in, and can move about the dashboard, I just can't publish properly. I say properly because it seems like if I hit the back button that sometimes the status of my post went from Draft to Published. Then sometimes I can make updates and republish, but not always successful.

Re: WordPress or S2Member plugin issue? “Could not authentic

PostPosted: March 24th, 2011, 10:26 pm
by Uba16
It might be good if they could have a proper login into that way. That they need to integrate the WP sites. In addition, they needed to update the advance settings for the plugin.

Re: WordPress or S2Member plugin issue? “Could not authentic

PostPosted: March 25th, 2011, 2:22 am
by Cristián Lávaque
SiteSubscribe wrote:Sometimes I check 'remember me', but...by default, WordPress makes your login session cookie expire in 48 hours (or on browser close), or 14 days if you check the "Remember Me" box.

I'm getting kicked out by what seems like an action (publishing a post) rather than a time measurement. I can hit my browser back button and I remain logged in, and can move about the dashboard, I just can't publish properly. I say properly because it seems like if I hit the back button that sometimes the status of my post went from Draft to Published. Then sometimes I can make updates and republish, but not always successful.


That's all really odd behaviour. :?

Did you try disabling other plugins one by one? Try the action that gives you the problem after each and see if it went away. If it does, the last one you disabled may be the one causing it.

Re: WordPress or S2Member plugin issue? “Could not authentic

PostPosted: March 26th, 2011, 6:05 pm
by SiteSubscribe
I tried disabling a lot of plugins, but not all of them yet.

I wonder if it has something to do with the fact that I'm running multisite, and often bouncing back and forth between blogs, with various browser tabs open and sometimes more than one browser, and even different WP installs. Sometimes I log in as client for testing.

Whew...no wonder WP is confused! It is likely that the cookies are getting confused and losing my authorization.

This seems most plausible to me at this point. Need more time to prove out the theory.

I'll try to close more tabs/browsers and be sure to logout of other sites to see if this still occurs.

Re: WordPress or S2Member plugin issue? “Could not authentic

PostPosted: March 26th, 2011, 7:14 pm
by Cristián Lávaque
Yeah, I can see how that could cause trouble!

The most important thing to do when setting up mulsite networks (a.k.a. blog farms) with s2Member, is to add this line to your /wp-config.php file.

Code: Select all
define('MULTISITE_FARM'true);  


That will add a default layer of security to all blogs within your network, with respect to s2Member. ;)

You can see more multisite networks information over at WP Admin -> s2Member -> Multisite Config.

If you'd like full details along with support for Blog Farming, please take a look at our Network Support Package, listed toward the bottom of this page: http://www.s2member.com/prices/

Re: WordPress or S2Member plugin issue? “Could not authentic

PostPosted: March 26th, 2011, 7:51 pm
by SiteSubscribe
I guess I'm a little confused as to whether what I'm doing constitutes a blog farm. I raised the question here on this thread, along with an explanation of what I'm trying to do currently:
http://www.primothemes.com/forums/viewtopic.php?f=4&t=2750&p=8412#p8412

I may grow into that, but not sure it is what I have or what I need currently.

Re: WordPress or S2Member plugin issue? “Could not authentic

PostPosted: March 26th, 2011, 8:59 pm
by Cristián Lávaque
I understand what you mean. I'll let Jason clarify that in the other thread then. :)