Drupal errors "Notice: Undefined index: profile in..."

Drupal errors "Notice: Undefined index: profile in..."

The Problem

Notice: Undefined index: profile in /Applications/MAMP/htdocs/head/install.php on line 389

The Solution

Ah the joy of procedural programming in a weakly typed language. There are two issues here: 1. Drupal is reporting notices 2. Datastructure mismatches The particular above notice is created when php tries to access a index of an array where the variable is not holding an array. In general this notice will not cause problems with Drupal functionality. You may want to turn off php reporting notices. To do this you can change php's error reporting. In php.ini use: error_reporting = E_ALL & ~E_NOTICE In .htaccess user: php_value error_reporting 2039

Related Posts

Tracing & Debugging Drupal Errors.. Backwards!

Ahmad Kharbat
Read more

Positioning and Z-index with Ninesixty

Tom Nelson
Read more

How to Perfect your Twitter Profile in 4 Easy Steps

Felipa Villegas
Read more

UX Basics for User Profile Accounts

Jennifer
Read more

Sortable User Flag Stats in Views Using the Profile Module

Tom McCracken
Read more

How to Skyrocket Your LinkedIn Profile Views

JJ Lonsdale
Read more