#1558 Posted in ‘CommentBox’

Latest post by Lefteris Kavadas on Sunday, 11 October 2026 12:59 EEST

Apricus e.V.
Upload of pkg_commentbox-1.4.1.zip via extension package upload just fails with the following errors: JInstaller: :Install: SQL Error Duplicate entry '1' for key 'PRIMARY' Installation of the extension has been stopped. Install package: error occured while installing extension: com_commentbox.zip Some parts of these messages were in German and are translated by me, so this is probably not word-exact.

Lefteris Kavadas

Hi,

CommentBox only inserts a few predefined records during installation, specifically the categories used for flagging comments.

The SQL error suggests that some data from a previous or incomplete installation may already exist in the database, causing a duplicate entry. Unfortunately, I cannot determine why the previous installation was incomplete.

Please try the following:

  1. Go to System → Manage → Extensions and search for CommentBox.
  2. If you find it and you don't have any existing comments or other data you need to preserve, try uninstalling it first.
  3. If CommentBox is not listed, you may need to manually clear the leftover database table.

The table in question is:

#__commentbox_flags

You can either truncate (empty) the table or drop it entirely using a database management tool such as phpMyAdmin. Make sure to replace #__ with your actual Joomla database prefix.

Important: Before making any database changes, please take a backup.

Once you've done that, try installing CommentBox 1.4.1 again.

If the installation still fails, please let me know and we'll investigate further.

Best regards,
Lefteris

Apricus e.V.
I did find the administrator component COM_COMMENTBOX in System → Manage → Extensions. When trying to uninstall, I got this error: Joomla\Filesystem\Folder::delete: Path is not a folder. Path: [ROOT]/administrator/components/com_commentbox   However, the database table did exist, so I decided to drop it anyway and try installing commentbox again. This time it worked :-) For testing new extensions, I'm using a test copy of the live site, so if anything gets hosed this is not a problem. I can redeploy the test copy within a few minutes from backup.  

Lefteris Kavadas

Glad to hear that CommentBox installed successfully!

It looks like there were some leftovers from a previous incomplete installation, which caused the issue.

It's also good to hear that you're testing on a staging site before making changes to your live site.

Thanks for the update, and please let me know if you run into any other issues.

Best regards,  
Lefteris

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review