Skip to main content

Save failed with the following error: Null primary key not allowed

While saving an article, you encounter this error message "Save failed with the following error: Null primary key not allowed".

This error message indicates that the changes cannot be saved.

Problem with #__assets table

1 of the causes of this problem may have to do with the assets table added in Joomla 1.6.

To fix this you need to go through the following 3 steps.

  1. Go to Menus > all menu items. Click on the "Rebuild" button.
  2. Go to Content > Categories. Click the "Rebuild" button.
  3. Go to Content > Articles. Select all articles. Click the "Rebuild" button.

assets opnieuw opbouwen j4

 

Problem with a plugin

Another cause of this problem may lie in 1 of the plugins you have installed. Chances are it is a plugin in the category "content" or "system".

Go to Extensions > Plugin Manager and filter the plugins by Content (or System).

content plugins


After this, disable and re-enable the plugins 1 by 1 to find out which plugin is causing the problem.

Once you find the plugin, contact the developer to fix the problem.

Was this helpful? Share it with your friends!
This article was updated on: 20 December 2024

About Jeroen

I have been working with the Joomla! CMS since 2006. Besides building and maintaining Joomla! websites and webshops, I am also familiar with search engine optimization (SEO), Joomla hosting and developing templates and extensions. Furthermore, I am a frequent visitor and speaker at JoomlaDays and various Joomla user groups.

I am committed to the Joomla! community as a member of the Extensions Directory team and the organization of Joomla user group Breda and JoomlaDagen Netherlands. In short: Are you looking for a Joomla Specialist, you should contact me!