I have noticed that hitting the “publish” button in the frontend publisher automatically logs me out, but only in Firefox. I tried it on three different machines with the same result. Actually, sometimes it’ll log me out even if I just visit the publisher page. I don’t know with which version of UP this began happening. I’m using v 1.074 now. This occurs regardless of the role (i.e., from subscriber to admin).
This occurs only in Firefox. All is fine in Chrome and even in Explorer 11.
P.S. If required: Cannot yet make page public but can certainly send admin login details.
Because this might be a related issue, I will post it here. I have noticed a problem in all browsers: The author link-to permalink structure doesn’t always work when using first-last name. This is also very recent. I am using the firstname-lastname permalink structure because of the dot in some Facebook usernames. (If WordPress author pages natively accepted dots or if UserPro converted dots to dashes, I’d simply use the username.) Using the user ID number doesn’t work at all for this purpose.
Updating this issue: I contacted my server provider to rule out any cache mechanisms they might have on the node that would cause this behavior (they don’t), clearing cookies, etc. I’ve also narrowed the problem slightly: I deactivated UserPro and no problems with logouts. After reactivating UP, I noticed that I would get logged off simply by going to the publisher page. I then set up another page (activity stream)–same logout issue. Again, this happens only with Firefox, and I have to think it’s a phpsession problem, but beyond that, I don’t know what to explore. I noticed that one other person here had a very similar problem, but I saw no conclusion in that thread. No, I don’t think this an entirely UserPro issue–it’s more a combination of things, of which UP is one participant. Any direction is much appreciated!
Problem solved (for now). Here’s what I did:
1. I removed the www from the site’s URL in General Settings, then followed the WP codex here: http://codex.wordpress.org/Changing_The_Site_URL (I edited functions.php)
2. I then re-entered the roles allowed to publish in the UserPro settings (a great new feature added for version 1.0.73, I think).
Works fine for the moment in Firefox and of course in the other browsers.
So, as suspected, it was not a UserPro issue in and of itself; it was rather a combination of things.
As for the permalink settings for the author page, I’m about ready to give up on that. I did have them working a couple of versions ago using full name, but it remains spotty with no obvious pattern as to when it fails or succeeds. There is always a pattern, however… Username with dot (e.g. Facebook) definitely does not work with with UP and the WP default author page.
Hi, I have the same issue please fix this problem on firefox. I don’t want a site without www.
Hi, I have solved the problem by adding to functions.php of my theme the following code:
remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’, 10, 0 );
Hi solucionsport. Thanks for sharing the fix. I would never have thought of that remove action code (or of anything code-related, for that matter). I just tested it, and it also works. Anyone reading this should make sure they’re in their theme functions.php and not the WP file. Thanks again.
You’re Welcome. For me it was also a problem with WooCommerce.
I checked this: http://wordpress.org/support/topic/firefox-logout-woocommerce9 years, 4 months ago MattiaParticipant
i have your the same problem!
I’m really newbie about .php please could you explain step by step how to resolve this problem?
Only in Firefox when i click the button “View Profile” or on the button page on menu there is automatically log off.
Mattia9 years, 4 months ago pamomParticipant
Can you explain your fix a little more? I’ve been having the same issue and I’d like to fix it, but I’m still sorta new to WP. I can add some code to my theme’s functions.php file, but I don’t understand why that fixes it.9 years, 4 months ago adminKeymaster
Can you try the solution described here please – and let me know how it goes ? Thanks
http://userproplugin.com/userpro/forums/topic/users-gets-logged-out-when-viewing-posts/9 years, 4 months ago Ayesha (UserPro Support )Participant
Also, please be careful with the apostrophes when you copy the code from the link that was shared
You must be logged in to reply to this topic.