Keyword

Login issues after upgrading to 2.10.3

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #177028 by Sanchit Jain
Login issues after upgrading to 2.10.3 was created by Sanchit Jain
Hello,

I hope you're doing well!

After upgrading from K2 v2.10.2 to latest version, 2.10.3, I am experiencing below issues:
  1. When a guest user tries to login to view registered user content, it redirects to the login page with a return param in the url
  2. When try to login again, it shows JINVALID_TOKEN_NOTICE message

Upon disabling all K2 extensions on v2.10.3, login is smooth. I also see below notice via Forum Post Assistant script:

[29-Sep-2020 06:47:23 America/New_York] PHP Notice: Undefined offset: 1 in /home/dommu/public_html/test/plugins/system/k2/k2.php on line 702

This issue is causing huge problem to website users and it has been about a month I am experiencing it. I earlier thought this is joomla related but with the details I have, I can confirm it is related to K2 latest version.

Please guide what should be done.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #177029 by JoomlaWorks
Replied by JoomlaWorks on topic Login issues after upgrading to 2.10.3
I'm guessing the login option is on all pages and as such, you may experience cache issues with 2 HTTP headers that were added in K2 v2.10.3 and will be optional in the upcoming v2.10.4.

To resolve this now (until 2.10.4 is out), please do this: www.joomlaworks.net/forum/k2-en/54343-cache-problem-with-2-10-3#176573

Please Log in or Create an account to join the conversation.

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #177031 by Sanchit Jain
Replied by Sanchit Jain on topic Login issues after upgrading to 2.10.3
Thank you. I have commented those 2 lines but it is still not smooth.

After logging out and login again, it is showing JINVALID_TOKEN error i.e. "The most recent request was denied because it had an invalid security token. Please refresh the page and try again."

I then again disabled all K2 extensions and login is smooth.

Please guide.

Please Log in or Create an account to join the conversation.

More
4 years 7 months ago #177032 by JoomlaWorks
Replied by JoomlaWorks on topic Login issues after upgrading to 2.10.3
Test with a private browser window. Depending on your cache duration in Joomla, your browser may had cached the entire output, in which case the user token in forms would be incorrect.

Please Log in or Create an account to join the conversation.

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 7 months ago #177036 by Sanchit Jain
Replied by Sanchit Jain on topic Login issues after upgrading to 2.10.3
I have cleared Joomla cache, deleted all session files (Cache Handler
being File) and then again tested on private window but the issue still exists.

Please Log in or Create an account to join the conversation.

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #177038 by Sanchit Jain
Replied by Sanchit Jain on topic Login issues after upgrading to 2.10.3
Hi, do you any update on my last reply?

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #177044 by JoomlaWorks
Replied by JoomlaWorks on topic Login issues after upgrading to 2.10.3
I can't think of anything else. I'll need an actual URL to check on your site's HTTP headers.

Please Log in or Create an account to join the conversation.

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #177049 by Sanchit Jain
Replied by Sanchit Jain on topic Login issues after upgrading to 2.10.3
Sure. Is there a private way to share the URL and credentials, maybe by email?

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #177051 by JoomlaWorks
Replied by JoomlaWorks on topic Login issues after upgrading to 2.10.3
I meant just the URL for starters. Otherwise use this: www.joomlaworks.net/support/get-help/contact

Please Log in or Create an account to join the conversation.

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #177052 by Sanchit Jain
Replied by Sanchit Jain on topic Login issues after upgrading to 2.10.3
Thank you. I have submitted the contact form with details.

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #177053 by JoomlaWorks
Replied by JoomlaWorks on topic Login issues after upgrading to 2.10.3
OK, so my guess is that you're dealing with cache issues either related to the server or Joomla (through some 3rd party extension). If I use the /login.html path, I get all sorts of warnings (e.g. wrong token, sign in again etc.), despite Joomla having me logged in already, cause if I browser to one of the user actions (through the menu), I can see my profile edit page. Now if I use /index.php?option=com_users&task=login I can login and browse the site just fine.

This means something is switching off cache-control for URLs with com_users but not with /login.html.

So check your Page Cache system plugin for starters and if it's enabled, add the right exclusions under the Advanced tab. If you use another caching plugin, search for similar exclusions as well.

All I can say is that this is not a K2 issue really.

Please Log in or Create an account to join the conversation.

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #177054 by Sanchit Jain
Replied by Sanchit Jain on topic Login issues after upgrading to 2.10.3
1. I have had 'System - Regular Labs - Cache Cleaner' enabled and the issue still exist after I disabled it. There is no other cache extension except Joomla's System Cache being Conservative caching.

2. Upon disabling all K2 extensions, it just work fine.

Is there a way by which I can downgrade to K2 v2.10.2?

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #177058 by JoomlaWorks
Replied by JoomlaWorks on topic Login issues after upgrading to 2.10.3
1. That extensions does not modify Joomla's caching, it merely deletes it. It's useful to have.
2. Install v2.10.2 on top of v2.10.3. However I insist the issue is elsewhere. When you disable "all K2 extensions" as you say, you may also have disabled a 3rd party extension for K2.

Please Log in or Create an account to join the conversation.

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #177062 by Sanchit Jain
Replied by Sanchit Jain on topic Login issues after upgrading to 2.10.3
PFA screenshot. These are all the K2 related extensions present and all the extensions are provided from JoomlaWorks, except 'OSMap - K2 Plugin' which is already disabled since many years.

Attachments:

Please Log in or Create an account to join the conversation.

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #177063 by Sanchit Jain
Replied by Sanchit Jain on topic Login issues after upgrading to 2.10.3
I just installed 2.10.2 over 2.10.3 and it solved my issue. Login works perfectly. Thank you! :)

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #177064 by JoomlaWorks
Replied by JoomlaWorks on topic Login issues after upgrading to 2.10.3
After a 2nd look, it's most likely the system plugin in K2 caused a different issue with how plugins can inject stuff in the document body. You can install K2 v2.10.4 (dev) on top of 2.10.2 to test as well: getk2.org/downloads/?f=K2_Development_Release.zip

My guess is it will resolve your issue. If it doesn't, you can switch back to 2.10.2 again.

Please Log in or Create an account to join the conversation.

  • Sanchit Jain
  • Sanchit Jain's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 months ago #177065 by Sanchit Jain
Replied by Sanchit Jain on topic Login issues after upgrading to 2.10.3
Thank you for the suggestion, Fotis. But I would prefer upgrading to a stable release sometime later.

The issue has actually troubled the users a lot and we would like to stay with v2.10.2.

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #177066 by JoomlaWorks
Replied by JoomlaWorks on topic Login issues after upgrading to 2.10.3
It may say "dev", but all code commits are double-checked. Anyway...

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum