I get the following notices running the installer for 5.1


Notice: Trying to get property of non-object in /Applications/MAMP/htdocs/drupal-test/includes/form.inc on line 325

Notice: Undefined variable: edit in /Applications/MAMP/htdocs/drupal-test/includes/form.inc on line 759

Notice: Undefined variable: redirect in /Applications/MAMP/htdocs/drupal-test/includes/form.inc on line 268

Notice: Undefined variable: base in /Applications/MAMP/htdocs/drupal-test/includes/form.inc on line 461

Notice: Undefined index: #value in /Applications/MAMP/htdocs/drupal-test/includes/form.inc on line 1041

Notice: Undefined index: #value in /Applications/MAMP/htdocs/drupal-test/includes/form.inc on line 1041

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/drupal-test/includes/form.inc:325) in /Applications/MAMP/htdocs/drupal-test/includes/common.inc on line 141

Notice: Undefined variable: no_module_preprocess in /Applications/MAMP/htdocs/drupal-test/includes/common.inc on line 1467

Notice: Undefined variable: no_theme_preprocess in /Applications/MAMP/htdocs/drupal-test/includes/common.inc on line 1488

Below this the 'Database configuration' form still displays. I fill in my details, then get kicked to a page with the following notices/error:


Notice: Trying to get property of non-object in /Applications/MAMP/htdocs/drupal-test/includes/form.inc on line 325

Notice: Undefined index: comment in /Applications/MAMP/htdocs/drupal-test/includes/install.inc on line 207

Notice: Undefined index: comment in /Applications/MAMP/htdocs/drupal-test/includes/install.inc on line 207

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/drupal-test/includes/form.inc:325) in /Applications/MAMP/htdocs/drupal-test/includes/install.inc on line 573

If I then refresh the page ( http://localhost/drupal-test/install.php?profile=default ) I get the 'Drupal installation complete' message. Then I can proceed as normal.

Is this a documented bug? Or is it a problem running Drupal under MAMP?

Comments

heine’s picture

See the note about error reporting in the System requirements:

error_reporting = E_ALL & ~E_NOTICE

--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.

pwolanin’s picture

Did you get the code via CVS?

The messages above look like what I saw last night on OS 10.4 after running the installer with Drupal from CVS HEAD (a.k.a. 6.x)- in this case all notices are turned on for development purposes. 'm using the built-in PHP and apache (4.4 and 1.3), not MAMP.

As above, these are notices based on the PHP configuration, so if you have a different PHP, that would explain why you're seeing these with 5.x.

---
Work: BioRAFT

htxt’s picture

... my config is PHP/5.1.2 and Apache/2.0

I flipped back to PHP/4.4.2 -- still the same problem

heine’s picture

Set error_reporting in PHP.ini to E_ALL & ~E_NOTICE
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.

joachim’s picture

... which can be done by adding this to the mod_php5 section in .htaccess:

  php_value error_reporting                 6135
billking’s picture

tonymiceli’s picture

i had the same problem. but i couldn't do that install at all..

my workaround so far is to install 5.0 which worked fine and now just update to 5.5. i hope this works. so 5.5 doesn't work well with mamp?