I'm using Joomla 3.9.14 Release and am no longer able to add new articles or extensions. The original installation was 3.7.x on which I recently encountered this problem.
On the main administrator page, under Maintenance, I get:
Joomla is up to date
and
Unknown extensions...
When I click on the latter, I get a page saying:
An error has occurred. 1062 Duplicate entry '0' for key 'PRIMARY'
Components -> Joomla Update yields the same error.
Saving an article shows:
Error Save failed with the following error: Duplicate entry '0' for key 'PRIMARY'
When I attempt to install a plugin, e.g. 'CookieHint', either through Web or through Package upload, I get:
Warning
Duplicate entry '0' for key 'PRIMARY'
Error installing plugin
When enabling Debug mode in Global Configuration, I get following trace when clicking "Unknown extensions..." again:
An error has occurred. 1062 Duplicate entry '0' for key 'PRIMARY' E:\HostingSpaces\(USERNAMEREMOVED)\(SITENAMEREMOVED)\wwwroot\libraries\joomla\database\driver\mysqli.php:665 Call stack # Function Location 1 () JROOT\libraries\joomla\database\driver\mysqli.php:665 2 JDatabaseDriverMysqli->execute() JROOT\libraries\joomla\database\driver.php:1421 3 JDatabaseDriver->insertObject() JROOT\libraries\src\Table\Table.php:805 4 Joomla\CMS\Table\Table->store() JROOT\libraries\src\Updater\Updater.php:177 5 Joomla\CMS\Updater\Updater->findUpdates() JROOT\administrator\components\com_installer\models\update.php:258 6 InstallerModelUpdate->findUpdates() JROOT\administrator\components\com_installer\controllers\update.php:102 7 InstallerControllerUpdate->find() JROOT\libraries\src\MVC\Controller\BaseController.php:710 8 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT\administrator\components\com_installer\installer.php:19 9 require_once() JROOT\libraries\src\Component\ComponentHelper.php:402 10 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT\libraries\src\Component\ComponentHelper.php:377 11 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\AdministratorApplication.php:101 12 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT\libraries\src\Application\AdministratorApplication.php:159 13 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT\libraries\src\Application\CMSApplication.php:196 14 Joomla\CMS\Application\CMSApplication->execute() JROOT\administrator\index.php:51
What I tried:
- System -> Clear Cache & Clear Expired Cache: OK
- Update Joomla to the latest release: OK
- Extensions -> Manage -> Database -> Fix: yields
Database table structure is up to date.
- Extensions -> Manage -> Update Sites -> Rebuild: yields
Update sites have been rebuilt from manifest files.
- Extensions -> Languages -> Install Languages: succesfully updated to 3.9.14.1
The Joomla site that I'm using is pretty standard (few articles only, no plugins/extensions, I manually added IIRC except for a language pack).
My PHP version is 7.3.4 (on Windows NT S057 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64
). Using protostar
as template.
Any idea what I can try next and/or how to debug further?
development mode
on in Global configuration, is there any additional error message?#__updates
. You can try this modify queryALTER TABLE k96qw_updates MODIFY update_id int(11) NOT NULL AUTO_INCREMENT;
just remember to change table prefix. If that doesn't help you can change the current autoincrement value for this table in for example phpMyAdmin (set it to highest of existing values +1).