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.
I am getting these notices at some pages after installing this module.
Notice: Undefined index: weight in _field_extra_fields_pre_render() (line 730 of C:\wamp\www\drupal\modules\field\field.module).
Comments
Comment #1
lelizondo CreditAttribution: lelizondo commentedI will check this out. Thanks for reporting this.
Comment #2
lelizondo CreditAttribution: lelizondo commentedExactly what you were doing when you got this error?
Comment #3
lelizondo CreditAttribution: lelizondo commentedComment #4
nikkubhai CreditAttribution: nikkubhai commentedI don't know what happened but I am not getting this error now.
Comment #5
lelizondo CreditAttribution: lelizondo commentedIf you do get the error, please describe what you were doing. In the meantime, I'm closing this.
Comment #6
sinav sonuclari CreditAttribution: sinav sonuclari commentedI get an error SAME
Comment #7
sinav sonuclari CreditAttribution: sinav sonuclari commentedXXX.com/#overlay=admin/config/people/accounts/display/full
should be visible in the past closed error...
Comment #8
lelizondo CreditAttribution: lelizondo commentedComment #9
lelizondo CreditAttribution: lelizondo commentedI got it. This is because, when you install PUX Profile, the 'History' block gets disabled, but a weight is not set, so Drupal is requesting it, that's why I wasn't able to replicate it, because once you visit the "admin/config/people/accounts/display/full " page and click Submit, Drupal assigns the missing weight.
You won't be able to reproduce unless you install the module.
Anyway, this has been fixed.
Comment #11
samjosein CreditAttribution: samjosein commentedI am getting this notices when submitting a form in the sample entity module.
Reference: http://www.bluespark.com/blog/drupal-entities-part-3-programming-hello-d...
Comment #12
netourish CreditAttribution: netourish as a volunteer commentedIn hook_field_extra_fields the third parameter weight is a required one. Make sure you are adding that to the feild array. In this case it may be
For details of the hook please refer to https://api.drupal.org/api/drupal/modules%21field%21field.api.php/functi...