Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#6 | filefield_paths-1195374-6.patch | 706 bytes | mikeytown2 |
Comments
Comment #1
iryston CreditAttribution: iryston commentedAfter removing basic theme (http://drupal.org/project/basic) error has gone!!!
Comment #2
babycourageous CreditAttribution: babycourageous commentedI'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
Comment #3
hey_germanoMe too, subscribing.
PHP 5.2.6, getting the error on user/password, same module version
Comment #4
babycourageous CreditAttribution: babycourageous commentedHere'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.
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedSubscribe
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.Comment #6
mikeytown2 CreditAttribution: mikeytown2 commentedComment #7
thedavidmeister CreditAttribution: thedavidmeister commentedI was having the same issue on the URL aliases page, the patch in #6 cleaned it up for me.
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commentedComment #9
Deciphered CreditAttribution: Deciphered commentedThanks, committed to 6.x-1.x.
Cheers,
Deciphered.
Comment #11
roball CreditAttribution: roball commentedThe fix is now officially available in version 6.x-1.5.