Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] 1062 - Error initialising the session.

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
7 years 9 months ago - 7 years 9 months ago #292601 by carin
Since last night when I click on the logout button it does not redirect to the homepage and I get:
Code:
1062 - Error initialising the session.
How could I track down the source of that issue? It happens even when I just logged in a few seconds before. There are no autoactions operating on the logout trigger.

CB 2.0
Last edit: 7 years 9 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 9 months ago - 7 years 9 months ago #292622 by krileon
Replied by krileon on topic 1062 - Error initialising the session.
Joomla failed to recreate a guest session. That's the JERROR_SESSION_STARTUP error and as far as I'm aware is only thrown from Joomlas core session check function. CB does call checkSession on logout to recreate a guest session, but we don't call the CMS checkSession we call the JApplication checkSession.

The only way CMS checkSession throws that is if the query failed though. This means 1062 is the SQL error code, which is as follows.

Error Code: 1062. Duplicate entry 'ID_HERE' for key 'PRIMARY'

Try emptying your _sessions table and see if that solves it (this will clear all logins).


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.
Last edit: 7 years 9 months ago by krileon.
The following user(s) said Thank You: carin

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

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
7 years 9 months ago #292632 by carin
Replied by carin on topic 1062 - Error initialising the session.
emptying your _sessions table helped, thanks!

CB 2.0
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum