Drupal 5 installation error

NEGRITX - February 23, 2007 - 00:45

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

same problem

awan - February 24, 2007 - 17:11

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

Me Too

josephgut - February 24, 2007 - 19:28

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.

Figured Out the Problem

josephgut - February 24, 2007 - 22:24

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

error_reporting in PHP.ini

tostinni - February 26, 2007 - 17:16

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.

Amending PHP's error reporting for just your install...

aernative - March 12, 2007 - 10:31

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.

You have to set

safax - April 9, 2007 - 19:28

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"

You don't have to change the php.ini file

hyperlinked - February 24, 2008 - 14:57

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);

Another way in settings.php...

urbanfalcon - March 24, 2008 - 05:20

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');

This did the trick, btw does

bibstha - April 15, 2008 - 08:40

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

yes, so you'd better

greatfeel - July 8, 2008 - 07:51

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

If you are using XAMPP:

nielsbom - July 2, 2008 - 14:20

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

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

-Niels

 
 

Drupal is a registered trademark of Dries Buytaert.