No Code Attached Yet bug
avatar webgras
webgras
4 Jul 2022

Steps to reproduce the issue

Create manually a new content language i.e. hr-HR for Croatian
grafik

Create an article for Croatian
Create menu for Croatian (with home)

Open "Content" - "Categories" in J4 in the backend.
Create Categories for Croatian and English
Assign Language associations and save the the categorie

Warning ist shown "Some associated items are assigned to the hr-HR Content Language but that Content Language is trashed or deleted." and the Croatian flag is not shown for the associations.
grafik

Expected result

No warning shown.
Correct Association with flag in the category list

Actual result

grafik

System information (as much as possible)

Joomla 4.1.5
PHP 7.4.30

avatar webgras webgras - open - 4 Jul 2022
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jul 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Jul 2022
avatar brianteeman
brianteeman - comment - 4 Jul 2022

did you actually check to see if the error message was correct?

avatar webgras
webgras - comment - 4 Jul 2022

@brianteeman Do you mean, if the content language is trashed or deleted?
yes, I checked (see first screenshot - hr-HR is published, and I just rechecked, there are no deleted content languages)

avatar brianteeman
brianteeman - comment - 4 Jul 2022

How did you install the language without it creating a content language automatically?

I spotted that there is an additional bug in that you cannot empty the treash for content languages

avatar webgras
webgras - comment - 4 Jul 2022

I just created the content language manually. There is no language pack for Croation yet, so I could not install it.
Maybe that is the problem and the warning is for "site language", not "content language"?

avatar webgras
webgras - comment - 4 Jul 2022

I just created the content language manually. There is no language pack for Croation yet, so I could not install it. Maybe that is the problem and the warning is for "site language", not "content language"?

hm, but then I should not be able to create a "content language" if there is no "site lanuage".

avatar alikon
alikon - comment - 4 Jul 2022

can you dump the content of the #__languages table ?

avatar webgras
webgras - comment - 4 Jul 2022

grafik

avatar brianteeman
brianteeman - comment - 4 Jul 2022

I got different errors and you cannot manually create a site language - which is needed for the language filter

image

avatar brianteeman
brianteeman - comment - 4 Jul 2022

I just created the content language manually. There is no language pack for Croation yet, so I could not install it. Maybe that is the problem and the warning is for "site language", not "content language"?

yes - that looks like you might be correct

avatar brianteeman
brianteeman - comment - 5 Jul 2022

Looked further into this. There is definitely a bug rather than an incorrect message.

Read this PR #27236 and the comments by @Fedik and the subsequent PR #27341

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment