Closed Kadmon06 closed 1 year ago
Thanks you for reporting. Could you please give more information? Which Joomla Version is it? Is it a multilingual site? Colud you add a screenshot with your tags?
I am seeing the same problem on my system. Currently Joomla 4.1.4, but it has been consistent in every 4.x release I have used so far.
For me if I add the tags: [Cloud Printing][Google Drive Storage][Hardened Repository][Printer Logic][Veeam][Vendor Presentation] in any order, after I save the article the only tags that show up are [Vendor Presentations][Veeam].
I did an experiment and did discover that if I used just single work "Tags" All my tags are saved.
I think it looks like if tags have a space, then things are not processed properly.
I cannot replicate that. @sfosseen is your site multilingual?
"I think it looks like if tags have a space, then things are not processed properly." For me, spaces don't make a difference in saving, however, you are right that when searching for the tags, it is able to find one-word tags, or tags that are separated by a - sign, but it doesn't work for phrases with a space between them.
My site is not Multilingual.
Tags were originally setup in a 3.x version of Joomla. The site is pretty much a basic install of Joomla with only a comment component installed.
Also on the articles, the "Tag" formatting seems to be off. Some of the tags have different background.
https://k12tech.plaea.org is the website.
OK, One other Suprise. When I view the article, all the tags I have entered show up. When I edit the document from the back end, only 2 of the tags are in the TAG dialog box.
Also, the two tags that show up in the dialog box, don't have the correct formatting on the front page, but the other tags on the front-end article are formatted correctly.
What I also noticed is that the new tags I enter get the wrong path in the tags table.
Here's the parent id: 1611, that's "films". However, in the path, after /films/ for some unfathomable reason, it adds Doctor Strange for every movie article I've written after publishing Doctor Strange. For example: english/nexus-eng/films/film-doctor-strange-in-the-multiverse-of-madness-2022/film-the-boys-season-3-2022 Even though, as parent, it correctly shows 1611, "films"
"Also on the articles, the "Tag" formatting seems to be off. Some of the tags have different background."
That's because there are tags with class="btn btn-sm label label-info" , and also tags with class="btn btn-sm btn-info"
I have no clue how does the system choose which one to use for a tag, but more seem to have the first class than the second.
Here is how it looks:
What is the value of max_input_vars?
Date: June 17, 2022
Author: Brian Teeman
Source: Tango
Maximum Input Variables on my system is "1000"
I suspect that you may be hitting that limit. Try changing that setting to 2000 and see if it resolves the problrem.
There are many ways that you can do this. Some of them are described here or you might simply ask your web host to do it.
Thank you for your idea! However, I've changed mine up to 4000, but it didn't change a thing...
"Tags were originally setup in a 3.x version of Joomla." Just like mine.
"The site is pretty much a basic install of Joomla with only a comment component installed." I also use the same, Ccomment. I switched off Ccomment to check if that is the cause, but that didn't change anything about the problems.
I've searched the net for similar cases, and found these threads: https://forum.joomla.org/viewtopic.php?t=993798 https://github.com/joomla/joomla-cms/issues/35649
Also, I've found a possible solution to the problem. This solved mine problem, but others reported they still have the problem even after switching to Nested.
You need to switch the tags from AJAX to Nested.
Go to Global Configuration/Tags/Data Entry, and Tag Entry Mode should be Nested.
I still prefer the look of AJAX entry mode, with the full path, but it's a sacrifice I'm ready to make.
Maximum Input Variables on my system is "1000"
I have increased my "Input_Var" to "4000", Confirmed that on the System page it reflects the change to 4000. I then edited an article, removed all the tags, saved the article, then edited the article by adding the tags back. No difference in results after the increase of "Input Variables"
I've searched the net for similar cases, and found these threads: https://forum.joomla.org/viewtopic.php?t=993798 #35649
Also, I've found a possible solution to the problem. This solved mine problem, but others reported they still have the problem even after switching to Nested.
Solution 1
You need to switch the tags from AJAX to Nested.
Go to Global Configuration/Tags/Data Entry, and Tag Entry Mode should be Nested.
I still prefer the look of AJAX entry mode, with the full path, but it's a sacrifice I'm ready to make.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37927.
This change did fix the issue on the back end of showing all the tags assigned to an article. All the tags do show in the Article, but the formatting is still different between the tags.
Thanks for this hint, @Kadmon06
@sfosseen have you different css classes or layouts in your tags options?
Thanks for this hint, @Kadmon06
@sfosseen have you different css classes or layouts in your tags options?
Yes it does look like for some reason the css classes are different.
class="btn btn-sm label label-info" Is the class of the buttons that have always showed up on the back end, and on the front end appear not to have the proper formatting
class="btn btn-sm btn-info" is the code for the buttons that were hidden on the back end after a save, and show the proper formatting on the front end.
I have made no CSS changes myself.
This is stored in the database. #__tags, column params. You have two possibilities: either delete the classes in older tags or define the old classes in the css file of your template.
I don't see a Joomla issue here
The Joomla issue I see here is that I didn't change anything about the classes, but they were changed in the database. Now that I know that they were changed (and where is it stored in the database), it's easy to remedy them, though.
This is stored in the database. #__tags, column params. You have two possibilities: either delete the classes in older tags or define the old classes in the css file of your template.
I don't see a Joomla issue here
It does look like there was a change in how the TAGS component works between Joomla 3.x and 4.x, unless there is something in the template that would add "label label-info" to the option page of the TAG field in the back end. I am able to confirm that if I remove the "Label label-info" from the CSS Class for tag link field, then the tags show up as I expect with the correct formatting.
I do assume that if in the Tag settings I switch back to AJAX though that all the tags will not show up on the article edit screen after a save/close. I will have to test.
Same problem, temporarily fixed switching Ajax/nested
1st November 2022 - I'm also getting the problem with tags disappearing, which is fixed by switching from Ajax to nestled, so it seems like the problem persists or has returned, with the Ajax entry mode. I'm working on a new site with a clean/new install of Joomla 4.2.4.
I add tags (both already created in the tags component and creating on the fly in articles), tags are added to the tags component. Although on save the tags, some tags disappear from the article edit view, they have been saved. The problem is, that once they disappear from article view, if you save again, you then save the article without the tags and they disapear.
PR https://github.com/joomla/joomla-cms/pull/39254 should address this issue. Please help testing. Thanks !
Steps to reproduce the issue
Add more than 5 tags to an article. Edit: It seems to depend on the specific tags I add to the article, some tags remain, others get removed. It looks that if I type the name of the tag, and add it that way, it causes this problem. If I just choose them from the listed tags, I can add any number of tags. Save the article - the tags will appear in the contentitem_tag_map. When the article refreshes after saving, it will only show 5 tags. If I save the article again, it will only save those 5 tags, deleting the rest from the contentitem_tag_map.
Sometimes it's 3 or 7 tags that gets opened from the database. It's odd.
PS: Also, the tag previews don't show up properly after adding the 5th tag. It becomes case sensitive, and sometimes I have to type the whole address line to be able to add a tag.
Expected result
The article editor should open all of the tags. After saving, the tags should remain in the database.
Actual result
If I open the article in the editor, and save it, only 3-5 tags remain. Edit: When I open the article, it only reads the first 3-5 tags from the database, and treat the article as if only those tags were included. It treats tags that are already in the database, but not read, as new tags to be added.
Until I save it, the tags appear in the actual articles.
The tags are also there in the database:
Update: Sometimes it works normally, and I can add tags, that remain. I didn't change anything in the settings, or haven't updated anything when it started to work, and also didn't change anything when it turned problematic again.
System information (as much as possible)
Lenovo Ideapad 320-15ISK Laptop - Type 80XH Intel(R) Core(TM) i3-6006U CPU @ 2.00GHz 1.99 GHz 12,0 GB RAM
Joomla 4.1.4 Multi-language site
Windows 10 Home 19044.1706 64bit Firefox 100.0.2 & Google Chrome 101.0.4951.67
Additional comments
The problem appeared after refreshing to Joomla 4.1.4. It doesn't even notify the user, the tags just disappear. If I open an article, change some grammar errors, and save the article, I lose almost all of the previously set tags.
Solution
You need to switch the tags from AJAX to Nested.
Go to Global Configuration/Tags/Data Entry, and Tag Entry Mode should be Nested.
I still prefer the look of AJAX entry mode, with the full path, but it's a sacrifice I'm ready to make.