Page 1 of 1

Duplicate entry '1' for key 'PRIMARY'

Posted: 13 Apr 2023, 10:23
by kueppers
After the successful update from Joomla 3 to 4, the error message "Duplicate entry '1' for key 'PRIMARY'" appears after trying to install Phoca Gallery. The www is not very helpful. Can anyone tell me how to fix this error.

Many other extensions could be installed without problems.

Regards
Kueppers

Re: Duplicate entry '1' for key 'PRIMARY'

Posted: 14 Apr 2023, 23:12
by Jan
Hi, did you follow this guide:
https://www.phoca.cz/documents/50-jooml ... o-joomla-4

This seems like new install tries to add new items into database but there are previous data which should not be there.
This can happen when Joomla system does not have any information and thinks that the component does not exist and install it instead of update :idea:

When you enable debug mode, do you get more information about the problem (e.g. which table it is, etc.)

Jan

Re: Duplicate entry '1' for key 'PRIMARY'

Posted: 20 Apr 2023, 13:36
by kueppers
Jan, thank you for pointing this out.
I have "cleaned" the database and reinstalled the component according to the description.
Now the this error message no longer appears.

Regards
Kueppers

Re: Duplicate entry '1' for key 'PRIMARY'

Posted: 28 Apr 2023, 16:17
by Jan
Hi, great to hear it.

Jan