1. Fennec
  2. Commercial Templates
  3. Monday, 19 January 2026
  4.  Subscribe via email
I installed the NINA demo but It gave an error

Error
"Duplicate entry '700-5.3.0-2025-03-14' for key 'PRIMARY'"

The site is there - but I cannot enter as administrator as the username/password I entered does not work

Warning
"Username and password do not match or you do not have an account yet."

Any fixes are more than welcome.

Thanks
Attachments (1)
Accepted Answer Pending Moderation
0
Votes
Undo
Hello,

do you have access to the database?
Accepted Answer Pending Moderation
0
Votes
Undo
Yes - through Plesk
Accepted Answer Pending Moderation
0
Votes
Undo
Okay, it seems to me that there is an error in the database.
Accepted Answer Pending Moderation
0
Votes
Undo
That is clear, It was a clean install, new database, any suggestions?
Accepted Answer Pending Moderation
0
Votes
Undo
Which Joomla and PHP versions?
Accepted Answer Pending Moderation
0
Votes
Undo
Joomla 5.3.3, (as delivered with the NINA demo) , PHP 8.4.15 (latest)
Accepted Answer Pending Moderation
0
Votes
Undo
Have you tried a different PHP version?
Accepted Answer Pending Moderation
0
Votes
Undo
In Nina QuickStart, an SQL file is executed during the import process, inserting a duplicate entry into #__schemas, thus creating an existing entry. This causes the import to fail with a duplicate key error.

The affected file in the QuickStart package is:

installation/sql/mysql/custom.sql


It contains (around line 1895 in my case) the following statement:


INSERT INTO `#__schemas` VALUES (21,'5.0.0-2023-09-11'),(700,'5.3.0-2025-03-14'),(1254,'3.5.1');


The part (700,'5.3.0-2025-03-14') is the culprit.


Solution: In the file installation/sql/mysql/custom.sql, remove the entry for 700:

Before:


INSERT INTO `#__schemas` VALUES (21,'5.0.0-2023-09-11'),(700,'5.3.0-2025-03-14'),(1254,'3.5.1');


After:


INSERT INTO `#__schemas` VALUES (21,'5.0.0-2023-09-11'),(1254,'3.5.1');


Then reinstall QuickStart (ideally with a completely empty/new database), and the installation should complete successfully.

Best regards
Accepted Answer Pending Moderation
0
Votes
Undo
Will give it a go - thanks
Accepted Answer Pending Moderation
0
Votes
Undo
Worked perfectly - thanks!
Accepted Answer Pending Moderation
0
Votes
Undo
Great :)
Accepted Answer Pending Moderation
0
Votes
Undo
Hi z0r0z,

I bought Nina a few days ago and encountered the same issue so I followed your instruction.

I have change line 1895 into

INSERT INTO `#__schemas` VALUES (21,'5.0.0-2023-09-11'),(1254,'3.5.1');

But now I am getting error "Duplicate entry '443-8' for key 'PRIMARY'" in a new database (PHP 8.3.30).

Any suggestions?


Best regards
Ed
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Ed,

in this Nina Quickstart guide, the error is specifically located in the file:

installation/sql/mysql/custom.sql


The relevant line in your package is 2441:


INSERT INTO `#__user_usergroup_map` VALUES (...,(443,8),...);


The primary key of this table is (user_id, group_id) – and (443,8) already exists in your import → hence the "duplicate entry '443-8'".


Change line 2441 from:


INSERT INTO `#__user_usergroup_map` VALUES (3,8),...,(443,8),...,(992,8);


Regarding:


INSERT IGNORE INTO `#__user_usergroup_map` VALUES (3,8),...,(443,8),...,(992,8);


This ensures duplicate mappings are skipped and the import runs smoothly.

Best regards
Accepted Answer Pending Moderation
0
Votes
Undo
Worked perfectly :D

Thnx Ed
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.