Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2070

Administration Joomla! 4.x • Cannot save article - term_id does not have a default value

$
0
0
Hi,

this is my first post here, so bear with me if it's not perfect.

As the subject line says, I am asking you whether you have come across that error:

'Cannot save article - term_id does not have default value'

or can suggest something about it.

As you might have guessed, it occurs every time I want to save an article.

For some background on this:
Our club and me personally have recently suffered and survived through a Joomla 3 to 4 migration.
This error remains one of the few last ones that still need to be solved.

At first I was ignoring it because it didn't seem to affect the ability to actually have the changes saved.
In fact, it saves it and shows the error still. So worse things can happen, right?

But here comes the catch, when I try to create a new article, it cannot be found (at least in the backend)
After more in depth research on this topic, I found this: https://docs.joomla.org/J4.x:Assorted_I ... in_backend
Here the author describes a (pretty heavy-handed imho) SQL Query Fix - which actually also worked out to my favor and made the articles re-appear. But of course, this only fixes the situation right now, but does not address the root cause.

Still, it got me onto the track of thinking that the whole 'term_id' issue is at the core of it.

Also I did some studying on the actual use of the 'term_id' within the DB structures of J4, and it turns out that the finder_terms table seems to rely on it.
Then I tried the most logical thing which is to manually set the 'term_id' default value to something. But also this did not change it.

But to be honest, I am shooting in the dark here, I have no idea why such a table would even be accessed when it comes time to save an article.

Nor am I 100% sure that the whole 'term_id' error is causing the 'no visibility of newly created articles in the backend' phenomenon.
Maybe those two things might be totally unrelated (?)

As you might be able to tell, I am at my wit's end here.

So any idea, suggestion or remark on the topic would be highly appreciated, thanks in advance!

EDIT: I tried to have the debug console in the browser log the http requests etc. during save but that did not yield any useful information.
Also setting the logging to ALL in Joomla and also activating the PHP error message log from my provider did unfortunately not log anything related and of use in this regard.

Statistics: Posted by dfs-aviators — Wed Apr 10, 2024 7:30 pm



Viewing all articles
Browse latest Browse all 2070

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>