Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2006 at 18:41 UTC
Updated:
22 Nov 2006 at 19:32 UTC
Jump to comment: Most recent file
Comments
Comment #1
webchickWeird. I see that there's a drupal_verify_profile function that already should be doing this but isn't getting called for some reason.
Comment #2
webchickOk. So it is getting called, we're just not doing anything about it:
I tried throwing the rest of the function in an if ($modules) thing but I'm not sure what to do in the "else" case. Any ideas?
Comment #3
webchickOk, maybe something like this.
I'm marking this critical because this seems like a major bug in the install system. The installer should not continue if required modules are not found, and the end user should definitely never be exposed to huge scary errors like that.
Comment #4
Rok Žlender commentedPatch works as promised. If module is not present installer outputs which module and exits without installing drupal and wihtout any "scary" messages.
I am wondering why are there so many install_*_error functions couldnt we join them all in one instal_error($title, $body) function. The only reason I can think off are comments. Now every error function is clearly commented if there will be only one maybe it would lose clarity. Otherwise they all have exact same structure.
I have a patch for this ready but didnt want to upload it if this is a bad idea.
Comment #5
chx commentedI am marking this RTBC and Rok, please submit another issue, looks promising.
Comment #6
drumm<ul><li>One or more required modules is missing.</li><li>Please check the error messages and try again.</li></ul>THis doesn't make much sense as a list.
Comment #7
webchickSure, makes sense.
This patch places the message in paragraph tags, and also makes "try again" a link back to the same page; it's not intuitive that you would refresh the page to try again.
Comment #8
dries commented"One or more required modules is missing." Should be "are"?
Also, are the "error messages" going to provide useful information? What do they look like? (I'm not saying we should change things, just being curious.)
Comment #9
webchickFor some reason I thought you treated "one or more" as singular, but in Googling there seem to be more instances of using it as plural, so changed it. :)
Also, yes, the error messages (set as 'error' drupal_set_message()s) say:
"The blah module is required but was not found. Please move it into the modules subdirectory."
Tentatively setting this back to RTBC again.
Comment #10
dries commentedCommitted to CVS HEAD.
Comment #11
(not verified) commented