There is a php error message on admin/build/themes

Notice: Undefined index: type in filefield_filefield_paths_form_alter() (line 12 of /var/www/sites/all/modules/contrib/filefield_paths/modules/filefield.inc).

Apache/2.2.14 (Ubuntu)
PHP 5.3.2-1ubuntu4.9

CommentFileSizeAuthor
#6 filefield_paths-1195374-6.patch706 bytesmikeytown2
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

iryston’s picture

After removing basic theme (http://drupal.org/project/basic) error has gone!!!

babycourageous’s picture

I'm getting this error as well. I first noticed it when going to either the ADD or EDIT pages of the Custom Formatter module. When doing a dsm on the $form element in filefield.inc there does indeed seem to be a lack of a "type" index. Any thoughts or suggestions would be grand.

Thanks

hey_germano’s picture

Me too, subscribing.

PHP 5.2.6, getting the error on user/password, same module version

babycourageous’s picture

Here's my update...

I began noticing it on A LOT of my contrib modules and even my own custom ones. After some dsm-ing and digging around, I determined it to be a PHP thing. I know somewhere in the update process PHP went strict on us. No more silent fails... So now programmers have to check for the existence of variables before using them in things like if/else statements, foreach, etc.

At least that's what it wound up being for me.

mikeytown2’s picture

Subscribe

Notice: Undefined index: type in filefield_filefield_paths_form_alter()
line 12 of sites/all/modules/filefield_paths/modules/filefield.inc
Happens on the admin/build/path/list URL.

mikeytown2’s picture

Status: Active » Needs review
FileSize
706 bytes
thedavidmeister’s picture

I was having the same issue on the URL aliases page, the patch in #6 cleaned it up for me.

mikeytown2’s picture

Status: Needs review » Reviewed & tested by the community
Deciphered’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed to 6.x-1.x.

Cheers,
Deciphered.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

roball’s picture

Assigned: Unassigned » Deciphered

The fix is now officially available in version 6.x-1.5.