Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

intermittent Error: CB Login module not created (required)

8 years 11 months ago - 8 years 11 months ago #273525 by catconner1
I've got a stubborn but intermittent problem that I've been troubleshooting since my last updates of SCLogin and Community Builder.

Most of the time (I'd say roughly 90% based on anecdotal user information and my own experience), SCLogin works fine, and exactly the way it's supposed to. No problems.

But the other 10% of the time, when a user logs in (or logs in then clicks to view protected content), the page loads with this Community Builder error in the content pane:
Code:
Error: CB Login module not created (required).

No errors appear in the web server log or the Joomla error log.

It appears to be somehow redirecting to the CB Login page (shown by the breadcrumb at "You are here"), though the URL bar shows the home page www.fawco.org/ ). which is throwing an error. But the SCLogin module shows the "logged in" message (screenshot attached).

I've combed through both Community Builder and SCLogin forums and checked various things:
1. the SCLogin module "Registration Component" is set to "Community Builder"
2. There is a Community Builder login module published in the system, and it is configured to appear on all CB pages and at the bottom of every site page.
3. The site has no caching enabled anywhere.
4. The site uses only Joomla SEF.
5. Not browser-specific.

The last thing I saw that might be relevant was this post:
www.sourcecoast.com/forums/non-commercial-extensions/sclogin-enhanced-login/9850-login-does-not-work#p49250

but I'm not sure if making those changes in the CB System plugin are applicable to my situation, since the login works the majority of the time.

Any suggestions as to what else I can look at, log, etc. to try to figure this out would be greatly appreciated. For example, under what conditions does CB throw this particular error?

Site details:
www.fawco.org
PHP Version: 5.4
SCLogin version: 4.4.2
Joomla version: 2.5.28 (yes I know, the project to migrate to 3.4 is underway now :whistle:)
Community Builder version: 2.0.12
Attachments:
Last edit: 8 years 11 months ago by catconner1.

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

8 years 11 months ago #273572 by catconner1
Update: There seem to be two problems, one of which I've solved, the other not.

First of all, the "Error creating CB Login module" was a problem with the ACL settings on the CB Login module. That's been solved.

But there is still the problem of the SC Login and CB Login modules displaying the "logged in" menu when the Joomla session has already apparently expired.

So after fixing the CB Login module error, now the behavior to reproduce this problem is this:

1. User goes to site, and uses SC Login to log in successfully.
2. User doesn't use site for a while, and the Joomla session (set at 90 minutes) expires.
3. User returns to browser and clicks a link to "restricted" content.
4. CB Login module/form appears in the main content area, but SC Login and CB Login modules still display "Hi username" and user menu, not the "Login/Register" dialogue.

I get the same behavior whether login is done on a page accessed over http or https (SCLogin module is set to always send encrypted login info), and another extension redirects all pages to https after a successful login. That's all working fine.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273606 by krileon

But there is still the problem of the SC Login and CB Login modules displaying the "logged in" menu when the Joomla session has already apparently expired.

Is that after a page reload? Did you close the browser and restore the previous tabs? Sounds like you're just experiencing normal browser page caching and nothing specific to CB or even Joomla.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

8 years 11 months ago - 8 years 11 months ago #273662 by catconner1
Yes, it is after a page reload. That's why I'm so baffled. But you're right, it could be some sort of browser caching -- I just can't reproduce it reliably, which is why I'm troubled by it. And I've not seen this same type of strange module "caching" on any other site I've managed where there is no caching enabled.
Last edit: 8 years 11 months ago by catconner1.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273683 by krileon
Check within System > Clear Cache to ensure there is absolutely nothing cache. If there is clear it all and see if issue comes up again. I know there are some Joomla templates with their own frameworks that have their entirely on caching functionality. Aside from that I'm unsure what to advise as session tracking is entirely handled by Joomla and only thing I can think of that'd cause an issue like this is caching.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

8 years 11 months ago #273724 by catconner1
I did check and System Cache Plugin and Global Configuration cache settings have all been turned off all this time.

I did see some cached items showing up in the Joomla cache (not sure, maybe template related), so I looked for a "hard shutdown" option for the cache, and seemed to have found one:

forum.joomla.org/viewtopic.php?f=615&t=635868&view=previous

After changing the $cache_handler variable in the configuration.php file, nothing shows up in the cache. And so far I've not had any reports of the strange login behavior. (Though the site load performance has gone to ****)

Fingers crossed. Thanks again for all your help!

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

Moderators: beatnantkrileon
Powered by Kunena Forum