Drupal install fails to complete when using generated profile
| Project: | Profile Generator |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Profile Generator is such a neat idea, but I haven't yet gotten it to work. What happens is that when I submit the form with the database connection values on it, Drupal returns a white screen. If I view source on that page, it shows a page presenting the standard error message that's displayed when you try to run install.php on a site that's already been installed. (I can't see any errors in the HTML that would cause it do have a white screen.) If I hit the back button, the page displays instead of being white. (I don't want to get into the weeds on the white screen issue, I think that's a epiphenomenon.)
If I look at the database at that point, I find that all the tables have been created and many values have been inserted. However, the site is definitely not in a stable condition at that point. So the profile script is clearly not completing.
I've looked at my PHP error to see if I could see a point where it's exiting, and I'm not seeing anything that's obvious to my eye. Here's a typical list of log entries for an attempt to run install using a generated profile:
[18-Nov-2008 08:48:22] PHP Notice: Undefined index: pass in /Users/escoles/Sites/installtest/install.php on line 124
[18-Nov-2008 08:48:22] PHP Notice: Undefined index: pass in /Users/escoles/Sites/installtest/includes/install.mysql.inc on line 32
[18-Nov-2008 08:48:22] PHP Notice: Undefined variable: no_module_preprocess in /Users/escoles/Sites/installtest/includes/common.inc on line 1480
[18-Nov-2008 08:48:22] PHP Notice: Undefined variable: no_theme_preprocess in /Users/escoles/Sites/installtest/includes/common.inc on line 1501Nothing in there looks like an obvious show-stopper to me, but based on the "no_module_preprocess" I verified that all the modules I wanted were installed, and based on "no_theme_preprocess" I reset to a simpler theme (bluemarine), with no change in behavior. I've also tried versions of the export both patched for views export and un-patched, and I've also worked through and selectively disabled each export option prior to generating a profile. I get the same behavior every time.
I'm running both the source and target sites on my Mac, under MAMP, using Apache 2, php 5 and MySQL 5.0.41. Have not yet tried switching down to PHP 4 (can't easily test Apache 1.3 or lower versions of MySQL.
Any suggestions on how to work around this, or for where I might be going wrong?

#1
I've just used the Profile Wizard to create an install profile and get very close to the same behavior I described above. (The only differences are in the PHP errors that are thrown, and those are similar but more extensive.)
So it may be something to do with profiles in general, and not Profile Generator. (Though, the config screens are so similar, I'd expect there to be some code sharing -- would I be wrong about that?) So I'll take this to the forums and the groups.
Nevertheless, I would appreciate if anyone reading this here could offer some guidance on what I might be missing or doing wrong. I'd love to get a generated profile working. (Given the number of sites per year I expect to be building based on our "baseline configuration" (10 or fewer), manually creating and debugging an install profile doesn't end up being very cost-effective versus just recording all the settings in a spreadsheet and configuring manually.)
#2
Those are only notices, not errors - but this may stop a page from redirecting.
you can try turning off E_STRICT in php.
#3
Thanks, will try that when I come back to this.