Download Drupal 5.x and put drupal in www of easyphp.
Running localhost, the install script see the above messages:
Notice: Undefined variable: redirect in c:\easyphp18\www\drupal-5\includes\form.inc on line 268

Notice: Undefined variable: base in c:\easyphp18\www\drupal-5\includes\form.inc on line 461

Notice: Undefined index: #value in c:\easyphp18\www\drupal-5\includes\form.inc on line 1041

Notice: Undefined index: #value in c:\easyphp18\www\drupal-5\includes\form.inc on line 1041

Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp18\www\drupal-5\includes\form.inc:268) in c:\easyphp18\www\drupal-5\includes\common.inc on line 141

Notice: Undefined variable: no_module_preprocess in c:\easyphp18\www\drupal-5\includes\common.inc on line 1467

Notice: Undefined variable: no_theme_preprocess in c:\easyphp18\www\drupal-5\includes\common.inc on line 1488

What wrong???? Help me please
Max

Comments

awan’s picture

I am getting the same problem. Could anybody help us please.

Anonymous’s picture

I'd love to be able to switch from Joomla to Drupal, but kind of difficult if I can't even get the installer to work. Any help would be appreciated. Here are the specifics of what I'm seeing:

Notice: Undefined variable: no_module_preprocess in /var/www/fixingtheplanet.com/html/dru/includes/common.inc on line 1467

Notice: Undefined variable: no_theme_preprocess in /var/www/fixingtheplanet.com/html/dru/includes/common.inc on line 1488
Drupal database setup
The following error must be resolved before you can continue the installation process:
The Drupal installer requires write permissions to ./sites/default/settings.php during the installation process.

Anonymous’s picture

I figured out what the problem was - hope this will help someone else too. There were some settings in my php.ini file that Drupal did not like. Now, unfortunately I don't know what settings exactly, but after going back to a virgin php.ini then Drupal installs just fine.

Enjoy,
Joseph

tostinni’s picture

Well it's not really something wrong with your PHP, it's just about the way Drupal is coded for the moment regarding the errors.
You have to set error_reporting = E_ALL & ~E_NOTICE in your php.ini
See Drupal requirements
Drupal 6 will support E_ALL.

aernative’s picture

For those of you whose hart stops at considdering a global change to the php.ini, with apache you can set the php varible for a specific folder in fact this could have been set in the .htaccess file - e.g.

<Directory PATH_TO_DRUPAL>
<IfModule sapi_apache2.c>
	php_admin_value error_reporting "E_ALL & ~E_NOTICE"
</IfModule>
</Directory>

Obviously replace PATH_TO_DRUPAL with the correct path. I dont know how to do this in windows, may have to do it in the main php.ini.

safax’s picture

You have to set error_reporting = E_ALL & ~E_NOTICE in your php.ini

where in the php files, a lot of lines contains "error_reporting"

hyperlinked’s picture

I'm having the same problem right now working on a IIS 6.0 server. php.ini is set to E_ALL and I don't have access to change it.

You don't need to change php.ini though. You can just add the following somewhere near the top of bootstrap.inc

/**
 * Override error_reporting setting in php.ini file if php.ini is set to E_ALL or 2047.
 */
error_reporting(E_ALL & ~E_NOTICE);
urbanfalcon’s picture

In settings.php, under "PHP Settings:", you could also include these two lines (instead of the override above):

ini_set('display_errors',		 '0');
ini_set('error_reporting',		 'NULL');
bibstha’s picture

This did the trick,
btw does this mean i wont see the errors in modules?

greatfeel’s picture

yes, so you'd better use
ini_set('error_reporting', 'E_ALL & ~E_NOTICE | E_STRICT');

nielsbom’s picture

The \xampp\apache\bin\php.ini is the correct one!

Source: http://www.apachefriends.org/en/faq-xampp-windows.html#phpini

-Niels