Closed (fixed)
Project:
Require Login
Version:
3.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
2 Sep 2022 at 18:58 UTC
Updated:
21 Sep 2022 at 08:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bobooon commentedWhat version of Drupal core?
Comment #3
cebronix commentedSorry, Just updated to Drupal core 9.4.5. - PHP on 7.4 until I get everything else updated, then attempting to move that to 8.1 (hence the updates)
Comment #4
bobooon commentedAre you sure? Drupal 9.4.x does have the language.config_factory_override service. Version 3.x only supports 9.x and onwards.
https://api.drupal.org/api/drupal/core%21modules%21language%21language.s...
Comment #5
cebronix commentedPositive. Updated it a couple hours ago. Cleared cache. Restarted container. Etc. The usual stuff.
Ok, I've gotten around it by uninstalling the module and reinstalling. Not ideal but it did get me past the database update.
Comment #6
dimaro commentedThe same issue here, the database update does not apply correctly. @robphillips I don't know why, but the following line is the one does not load the service well, even though it is an existing service: https://git.drupalcode.org/project/require_login/-/blob/3.x/require_logi...
I am using DDEV with Drupal 9.4.5 + PHP 8.0.21
Comment #7
bobooon commentedInteresting, I'll take a look. Could you please let me know what Drupal core version ya'll are upgrading from?
Comment #8
dimaro commentedHey @robphillips!
The Drupal core version is still the same, I already had Drupal 9.4.5, my intention was not to update the Drupal core because I knew it was up to date. My goal was to update those contributed modules that were flagged as "Needs update". See the following screenshot:
I debugged the "require_login_update_8300" method and I could see how in the process of updating the database, the "language.config_factory_override" service is not loaded correctly and arrives as empty. I could not spend much more time on it because the project in which we use this great module had other priorities.
Comment #9
cebronix commentedI was updating from 9.4.1
Comment #11
bobooon commentedThanks for reporting this issue and following up. Turns out the
language.config_factory_overrideservice is provided by the language module. Not directly in Drupal core. Update error occurs when the language module is not installed. Fixed by wrapping the translation config migration portion with a module exists check. Please upgrade to the latest release.Comment #12
dimaro commented@robphillips Thanks for your quick responses and work. The update now works correctly :)
Upgrading to 3.0.1!