Closed (fixed)
Project:
Drupal core
Version:
4.7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2006 at 20:59 UTC
Updated:
27 Jan 2007 at 16:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
eaton commentedAttached is a rough but working patch to install.inc that makes sure system.install is always executed first, then does a full bootstrap before kicking off any subsequent installs. I'm 100% certain others will find a cleaner way to do this (mine adds two convenience functions to the install system), but it works and is a good starting place.
Comment #2
eaton commentedBumping up the priority. This is a bug, not a feature -- many many contrib modules will not install properly without it.
Comment #3
chx commentedA reroll (patch complained a bit). And an RTBC. This is badly needed, for example, any .install that wants to do a variable_set will die.
Comment #4
eaton commentedOnce this is committed, http://drupal.org/node/73660 will also be ready to roll as well -- it splits more of the module specific tables into separate install files. We're very close on the install stuff.
Comment #5
drummI'm not fully familiar with the new API, so I can only say I think this looks good.
The DB work of rthe profile should happen after the modules so it can override database things as necessary.
Comment #6
eaton commentedThe original vesion of the file did execute things in that order -- fies the profile, then the module install files. After looking, I don't think that makes much sense.
I've re-rolled the patch with that one change: required modules first, profile-specified modules second, and the profile's custom _install hook after that.
Comment #7
eaton commentedComment #8
Steven commentedThis patch revealed a problem with our error handler: it always reported errors, even if the @ operator was used. This caused e.g. the chmod attempt for settings.php at the end of the install process to print additional visible warnings.
Patched by checking for @ in error_handler().
Comment #9
drummCommitted to HEAD (without the test bit of code added to default.profile).
Comment #10
doq commentedBad approach for error handler, I think:
If error reporting is turned off, e.g.
then admins won't see the error, warning etc. happened even these without @ operator.
Best would be to change
to not return immediatly, but continue error_handler() execution.
Is it possible to avoid @ within Drupal sources?
Comment #11
doq commentedsetting error_reporting to 0 won't make php to display any errors before Drupal error handler is set up.
Comment #12
Steven commentedIf the admin has error_reporting set to 0, they obviously don't want to see errors. What is your point?
We cannot avoid @ because some functions cause errors/warningsin relatively benign situations.
Comment #13
(not verified) commentedComment #14
killes@www.drop.org commentedjust a fyi: I've backported the common.inc change to 4.7.