Fix Duplicate entry '1-' for key 'whosonline' error

This post is valid for customers who use Joomla and have received the error:

Duplicate entry '1-' for key 'whosonline' SQL=INSERT INTO `xxx_session` (`session_id`, `client_id`, `time`) VALUES ('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 0, 'xxxxxxxxxx').

One way to correct it is directly in the database using the "phpmyadmin" tool built into your cPanel.

  1. Search the joomla database.

  2. Check the jos-session table (jos_ if that's the prefix you use).

  3. Select the Repair Table option from the bottom of the page display.

This solves the problem.

  • cpanel, solutions
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SSL Certificates

What is an SSL certificate? An SSL...

Activate Domainkeys and SPF

This article is valid for WHM / cPanel To...

Add IP address to SPF records

When working with SPF records, you may need to add additional IP addresses to...

Addon Domains

An Additional Domain allows a new domain name to be linked to a subdirectory of your account. The...

Antispam System Operation

All our Shared Hosting servers (cPanel Reseller Plans and End Users) are now equipped with a...