I know this issue is closed but using the latest dev versions D7 and of all modules I just can't get rid of it.
fresh install with a MySQL db, started enabling modules one at a time (via the UI, not Drush) and as soon as I got to the point of enabling the reference module these errors poped out:
Notice: Undefined index: weight in field_info_max_weight() (line 799 of /var/www/html/d7/modules/field/field.info.inc).
Notice: Undefined index: weight in field_info_max_weight() (line 799 of /var/www/html/d7/modules/field/field.info.inc).
Notice: Undefined index: weight in field_info_max_weight() (line 799 of /var/www/html/d7/modules/field/field.info.inc).
Notice: Undefined index: weight in field_info_max_weight() (line 799 of /var/www/html/d7/modules/field/field.info.inc).
Next I tried with a fresh install on SQLite. Same issue there.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | stacktrace.txt | 2.48 MB | mattyoung |
Comments
Comment #1
aristeides commentedIgnore the first sentence (I know this issue is closed....), I just started writing this as a reply to http://drupal.org/node/857662 and then realized that it was a different notice so copy-pasted to new.
Comment #2
rfayI'm going to bet that you're using Drupal 7.0. Please update to the latest dev. I think this issue was fixed with #1001624: Avoid "Undefined index" notice in field_info_max_weight() function of modules/field/field.info.inc. If I'm wrong, please reopen (just set it back to active).
Comment #3
aristeides commentedTrue, D7. Sorry I forgot to mention that.
The fresh install was using latest dev of both drupal and all modules involved in the installation.
Once the module was disabled and re-enabled though there were no more notices so this is of almost no importance. reopening and setting it to minor priority.
Comment #4
mherchelRan into this issue after enabling modules doing a test run with Drupal 7.2:
FYI
Comment #5
mattyoung commentedGot this same problem. D7 is git checkout of 7.x branch. All dependency are 'dev'.
Comment #6
rfayIf you're having this problem, please do two things:
0. Please make sure you did your update.php if you're upgrading.
1. Install the commerce_devel module (http://drupal.org/project/commerce_devel) and check the stack trace it provides in admin/reports/dblog. Provide that here.
2. Send me a dump of your database. Attach it to the issue if it's not sensitive and less than 20MB. Or email it to me (randy at commerceguys dot com) or put it somewhere and get me a link.
Comment #7
mattyoung commentedI emailed you the sql dump.
EDIT: Stack trace too big to paste here. Attached in the next message...
EDIT: email failed (Your message exceeded Google's message size limits.) Get it here: http://hddigitalworks.com/sites/hddigitalworks.com/files/commerce-devel....
Comment #8
mattyoung commented~
Comment #10
rfayI believe this is fixed by #1174206: Workaround #1174100: Undefined index: weight in field_info_max_weight() , which has been committed. Would appreciate testing and confirmation.
Comment #11
mattyoung commentedProblem is gone using commerce 7.x-1.x from git and latest drupal 7.x from git.