I’ve been looking at redoing my website boatblogger.com using Drupal instead of the Roller weblogger. Most of the users that started using boatblogger found roller a little to frustrating and eventually left for the bigger free blogging services. I’m also researching CMS systems to replace our home grown article publishing system at work so it’s a
valuable learning experience in that regard as well!
Anyhow, while my hosted servers run Linux, I use Windows as my desktop so to setup my Drupal dev environment I installed the latest 4.x release of PHP to run in IIS along with MySQL. After the installation I received these errors on the top of each page:
Notice: Undefined index: pass in c:\inetpub\wwwroot\includes\database.mysql.inc on line 31
Warning: session_start(): Cannot send
session cookie – headers already sent by (output started at
c:\inetpub\wwwroot\includes\database.mysql.inc:31) in
c:\inetpub\wwwroot\includes\session.inc on line 10
Warning: session_start(): Cannot send
session cache limiter – headers already sent (output started at
c:\inetpub\wwwroot\includes\database.mysql.inc:31) in
c:\inetpub\wwwroot\includes\session.inc on line 10
warning: Cannot modify header information – headers already sent….
After 25 minutes of Googling I finally found that the solution was to edit C:\Windows\php.ini and change the error reporting line to the following:
error_reporting = E_ALL & ~E_NOTICE;
This suppresses PHP warnings from getting sent to the users browser and fixed the issue for me.