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

lelizondo’s picture

I will check this out. Thanks for reporting this.

lelizondo’s picture

Exactly what you were doing when you got this error?

lelizondo’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
nikkubhai’s picture

I don't know what happened but I am not getting this error now.

lelizondo’s picture

Status: Active » Closed (cannot reproduce)

If you do get the error, please describe what you were doing. In the meantime, I'm closing this.

sinav sonuclari’s picture

I get an error SAME

sinav sonuclari’s picture

XXX.com/#overlay=admin/config/people/accounts/display/full

should be visible in the past closed error...

lelizondo’s picture

Status: Closed (cannot reproduce) » Active
lelizondo’s picture

Status: Active » Fixed

I 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.

Status: Fixed » Closed (fixed)

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

samjosein’s picture

Issue summary: View changes
Issue tags: +#drupal7 #entity

I 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...

netourish’s picture

In 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

	function postit_field_extra_fields() {
		$return = array();
		$return['postit']['postit'] = array(
			'form' => array(
				'note' => array(
					'label' => t('Note'),
					'description' => t('PostIt Note'),
					'weight' => -10,
				),
			),
		);

		return $return;
	}

For details of the hook please refer to https://api.drupal.org/api/drupal/modules%21field%21field.api.php/functi...