Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Jul 2016 at 13:48 UTC
Updated:
17 Oct 2016 at 10:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mustanggb commentedComment #3
jeroen.b commentedSince the following lines are in the commited patch:
I think we should fix this too.
Can you confirm that you have a record for "standard" and that status is 1 and that the value of the variable "install_profile" is "standard"?
If that's the case we only have to delete the old "default.profile".
Comment #4
mustanggb commented@jeroen.b: Yes to all of that.
Comment #5
David_Rothstein commentedHm, this is pretty unfortunate - I can reproduce just by updating from 6.x to 7.44, then updating to the latest 7.x. (Updating from Drupal 6 to the latest 7.x directly is OK.)
It is probably the case for whatever profile the Drupal 6 site was using (not necessarily "default"). I'm not sure if we can safely delete any profile that's not in use from the {system} table, but maybe we can....
In the meantime I will at least add this issue to https://www.drupal.org/node/2487215. Unfortunately a lot of people might see this - update.php displays warnings on the screen even if the rest of the site isn't configured to (I think).
I suppose this is basically just exposing a bug that was there all along on sites that upgraded from Drupal 6. It is just now a lot more visible...
Comment #6
David_Rothstein commentedMaybe it's mostly limited to default though. If you had another profile, you probably needed to keep it in place on upgrade (or else face other bugs)?
Comment #7
jeroen.b commentedI think it's only limited to default as that profile actually got renamed by Drupal core.
If you rename a custom profile it's your own task to take care of the "migration".
Comment #8
David_Rothstein commentedWe're thinking of adding the attached patch to the release (not as a final fix, but just to avoid error messages on lots of sites when we know the cause of the bug).
Comment #9
David_Rothstein commentedOr this one, which is just focused on this issue (the above is for #2761829: Getting drupal_trigger_error_with_delayed_logging errors on Drupal 7.x dev (7.50) too).
Comment #10
fabianx commentedI like #8, but I feel this should be in its own issue and this one should focus on fixing the thing in 7.51.
I do think we might also be able to do something about the menu router problem, so the work around feels okay to me.
Comment #11
stefan.r commentedCreated #2762393: Skip error triggering for missing files if the files are empty or "default"
Comment #13
David_Rothstein commentedBack to active for this issue then. When fixing it for real in this issue, we should remove that @todo (and most/all of that code).
Comment #14
fabianx commentedAdding as a bugfix target.
Comment #15
jamesoakley>> Comment #13 by David_Rothstein said "Back to active for this issue then"
Does that mean this issue needs to be put back into https://www.drupal.org/node/2487215 - I only found this issue because I looked at the revision history for https://www.drupal.org/node/2487215 and noticed that this had been removed from there now the issue is fixed.
Comment #16
stefan.r commented@JamesOakley no need, we implemented a workaround in #2762393: Skip error triggering for missing files if the files are empty or "default"
Comment #17
David_Rothstein commentedCompletely untested, but maybe something like the attached?
I added several conditions to the delete query that might not be strictly necessary, but want to be extra sure we don't accidentally delete a real Drupal 7 profile (e.g. with the same name) that's actually in use somehow.
I'm still curious exactly what happens if you run into this with a different install profile than "default", but I guess sites in that situation already have errors due to #1170362: Install profile is disabled for lots of different reasons and core doesn't allow for that and this issue would just be another error message on top of the existing ones...
Comment #18
fabianx commentedI would RTBC this, but this needs manual testing. The patch looks good to me though.
Comment #19
wylbur commentedI ran across this error on a site that was imported from D6 to D7. I applied the patch without issue. Ran the update and the missing module messages stopped.
Marking the RBTC.
Comment #20
stefan.r commentedThanks @wylbur for testing
Comment #22
stefan.r commentedCommitted and pushed to 7.x, thanks!