Drupal-5.9 Install fails: "Notice: Trying to get property of non-object in drupal-5.9\includes\form.inc on line 325" etc.
I followed the installation instructions to the letter. I am doing a clean install (not an upgrade). However Drupal 5.9 (File: drupal-5.9.tar.gz MD5=2937fd1503ee3d22d232e259d839e314) does not appear to work correctly. When I navigate to install it, I do get the "Database configuration" screen, but there are a bunch of PHP notice and warning messages at the top of the page as follows:
Notice: Trying to get property of non-object in P:\htdocs\cms\drupal-5.9\includes\form.inc on line 325
Notice: Undefined variable: edit in P:\htdocs\cms\drupal-5.9\includes\form.inc on line 763
Notice: Undefined variable: redirect in P:\htdocs\cms\drupal-5.9\includes\form.inc on line 268
Notice: Undefined variable: base in P:\htdocs\cms\drupal-5.9\includes\form.inc on line 465
Notice: Undefined index: #value in P:\htdocs\cms\drupal-5.9\includes\form.inc on line 1045
Notice: Undefined index: #value in P:\htdocs\cms\drupal-5.9\includes\form.inc on line 1045
Warning: Cannot modify header information - headers already sent by (output started at P:\htdocs\cms\drupal-5.9\includes\form.inc:325) in P:\htdocs\cms\drupal-5.9\includes\common.inc on line 141
Notice: Undefined variable: no_module_preprocess in P:\htdocs\cms\drupal-5.9\includes\common.inc on line 1480
Notice: Undefined variable: no_theme_preprocess in P:\htdocs\cms\drupal-5.9\includes\common.inc on line 1501(Update: I get a similar list of messages with Drupal versions 5.8 and 5.7)
Note that I have recently installed a variety of CMSs and Forum packages on my local test system with no problems whatsoever (i.e. Drupal-6.3, Joomla-1.5.5, Textpattern-4.0.5, phpBB-3.0.2, SMF-1.1.5, fluxBB-1.2.20, etc.), so I am quite well versed with the proper installation process and the required tools and configuration files. My Drupal 6.3 install even incorporates the advanced multi-site option and is working like a champ. The only reason I am trying the 5.x version is to integrate phpBB3 (The phpBB3 integration for Drupal 6.x is not yet supported.)
Here's my current platform specs:
WinXP Pro SP2, PHP 5.2.6, Apache 2.2.9, MySQL 5.0.51a, Opera 9.51, Firefox 3.0.1
Does anyone else experience this problem?
Comments
Update - Problem Solved (but I don't like the solution)
Well, it turns out that reading the INSTALL.TXT file is not enough. Upon closer investigation, the more detailed on-line installation instructions (in the "System requirements/PHP" section) make it clear that you need to ensure that php.ini has the following setting:
error_reporting = E_ALL & ~E_NOTICEDoing so fixed the previously mentioned Drupal 5.x installation problem. Previously, I had ERROR_REPORTING set to only E_ALL. I guess Drupal-5.x needs to hide a few warnings and notices to work properly.