Closed (outdated)
Project:
Drupal core
Version:
9.3.x-dev
Component:
install system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Jan 2010 at 16:13 UTC
Updated:
1 Apr 2022 at 08:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
David_Rothstein commentedYeah, and in addition to the watchdog message, you can also see something like "Installed Minimal module" appear underneath the progress bar while the installation is taking place...
Both of those are a little strange.
Comment #2
catchI've also spotted this, and agree it looks a bit odd.
yoroy did a screenshot:
Comment #3
aschiwi commentedI just played around with install profiles and I saw what is shown in #2 every time I installed. Whatever the name of your install profile, it's displayed there ("installed [profilename] module") and it's always the last step. Any ideas if this can be fixed?
Comment #4
rjgoldsborough commentedThis patch checks to see if the module being installed is a profile, and if it is, says "Installed %profile profile" instead of "Installed %profile module"
Comment #5
David_Rothstein commentedSince this involves a new string, I think we should move it to Drupal 8. It's not a serious enough bug that it's worth breaking translations for, in my opinion.
The approach in the patch looks very reasonable, but this part:
drupal_get_profile() returns the machine-readable name, so we don't want to display that. Can't you just continue using $module_name here?
Comment #6
rjgoldsborough commentedYeah, $module_name can be used here and this updated patch reflects.
Comment #7
tstoecklerThis should also update the watchdog call, right?
Comment #8
rjgoldsborough commentedWhy yes it should. Here is an updated patch.
Comment #9
David_Rothstein commentedPatch looks good, and I tested that it works. So... RTBC for Drupal 8 :)
Comment #10
dries commentedJust a heads up: I'd like to commit #1136130: Regression: Reinstate WATCHDOG_* constants and document why they are necessary. first. The patch in #4 will have to be re-rolled for D8 after #1136130 lands.
Comment #11
catchtagging.
Comment #12
catch#8: d8_install_profile.patch queued for re-testing.
Comment #14
rjgoldsborough commented#8: d8_install_profile.patch queued for re-testing.
Comment #16
rjgoldsborough commentedRerolled for d8.
Comment #17
David_Rothstein commentedLooks good, and seems to work perfectly.
Comment #18
chx commentedUse string overrides hack if you need to be dont add code executing once to module_enable which loads all the time a Drupal site exists. I feel we care less about bloat than we did before but this is really ick.
Comment #19
tstoecklerI thought there was an issue for reverting the whole install-profile = module blur, which would allow to solve this much cleaner, but I can't find it right now.
Comment #20
rjgoldsborough commentedSo the issue is the if statements in the module_enable function?
Comment #21
David_Rothstein commented@chx, I think you're fighting the symptom here rather than the cause. There is much more complicated code already in core to support the whole "install profiles are modules but not really" concept, and it makes the simple if statements introduced by this patch look like child's play. (For example, check out _system_rebuild_module_data()...)
As stated above, there's another issue for dealing with the overall problem. Or if not, there should be - I thought there was but couldn't find it either (there's some discussion of it in #820054: Add support for recommends[] and fix install profile dependency special casing definitely, but it's not quite the main focus).
Let's make sure an issue for that exists, but I don't see any reason to hold up a simple bugfix for it. (If nothing else, it helps give an accurate count of how many
if ($module == $profile)-type lines the current system requires us to have, and therefore helps determine the urgency of doing it in a better way.)Comment #22
sunTo fix the cause, I created #1676196: Install profiles are registered as modules
Comment #35
quietone commentedThis no longer happens. Certainly not on Drupal 9.4 which I just installed today via the web UI. There is an existing issue for dealing with the profiles as modules.
Therefore, closing as outdated. If this is incorrect reopen the issue, by setting the status to 'Active', and add a comment explaining what still needs to be done.
Thanks!