Active
Project:
Drupal core
Version:
main
Component:
language.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Dec 2018 at 12:55 UTC
Updated:
28 May 2025 at 06:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Omirr85 commentedI'm attaching my proposed patch to fix this problem.
This is an index check in two files.
Comment #3
Omirr85 commentedComment #4
Omirr85 commentedComment #5
Omirr85 commentedComment #9
johankleene commentedIs this still an issue? I am trying to reproduce the problem, but don't see any errors. Can you describe how to reproduce it?
Comment #11
willeaton commentedI am getting this same problem. When debugging all I see is in $config is this:
I have a feeling its a bad configuration in the language.negotiation configuration but not sure what I have wrong. According to the notice I am missing "source"
Comment #12
willeaton commentedOK, I think I know whats happening here. I have the domain module installed and the language.negotiation.yml file (and config page) gets replaced with domain.config.DOMAIN_NAME.language.negotiation.yml however this notice comes about because the language.negotiation is being called and getting incomplete data. What I did was copy the domain.config.DOMAIN_NAME.language.negotiation.yml file into language.negotiation.yml and do a `drush cim` and it resolved it for me. No need for patches
Comment #14
quietone commentedIn #9, it was reported that this problem is not reproducible. Then in #11, the problem was found when using the the Domain module and a workaround is given in #12. This is not looking like a problem in core.
If anyone is having this problem, re-open this issue and provide steps to reproduce starting from install Drupal core.
Thanks.
Comment #15
rory downes commentedHi,
I have seen this issue with a Drupal 10.4.3 site. I don't have the domain module. It happens when I add a language and Drupal is going through the batch process of adding translations.
I also tried it on a vanilla Drupal site (10.4.4) with just admin_toolbar and key modules added and the issue does not occur. So perhaps one of the many modules that I am using cause this.
To get going for now with dev work I used the patch on comment 5 but had to improve on it as there are more places where $config['source'] is checked. I am not saying this is the solution but may help others in their dev environment add a language.
Regards Rory
Comment #16
rory downes commentedComment #17
rory downes commentedComment #18
quietone commentedIf this problem was discovered on a version of Drupal that is not 11.x, add that information in the issue summary and leave the version at 11.x. In Drupal core changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies. Also mentioned on the version section of the list of issue fields documentation.
I restored the standard template to make it easier to track progress here.
Comment #19
ishani patel commentedI've tested with D10.4.5 and D11.1.6 ,checked with adding new language also checked with already added language edit page but not reproduced this error.
Thank you!