Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

On a Drupal 7 installation I got by inheritance, I am getting the following PHP notice whenever I run upgrade.php:

Notice: Undefined index: scale in number_field_schema() 
(line 36 of /var/www/modules/field/modules/number/number.install).

Backtrace (produced by the nice 'past' module) shows the following results:

1. /var/www/includes/bootstrap.inc (2204, _drupal_error_handler_real)
2. /var/www/modules/field/modules/number/number.install (36, _drupal_error_handler)
3. (0, number_field_schema)
4. /var/www/includes/module.inc (795, call_user_func_array)
5. /var/www/modules/field/field.crud.inc (373, module_invoke)
6. /var/www/modules/field/field.info.inc (198, field_read_fields)
7. /var/www/modules/field/field.info.inc (682, _field_info_collate_fields)
8. /var/www/modules/field_ui/field_ui.admin.inc (299, field_info_instances)
9. (0, field_ui_field_overview_form)
10. /var/www/includes/form.inc (787, call_user_func_array)
11. /var/www/includes/form.inc (331, drupal_retrieve_form)
12. /var/www/includes/form.inc (123, drupal_build_form)
13. (0, drupal_get_form)
14. /var/www/includes/menu.inc (517, call_user_func_array)
15. /var/www/index.php (21, menu_execute_active_handler)

How to debug such an error? How to know the cause?

share|improve this question
1  
Sounds like number_field_schema() was patched at some point and a required scale/precision pair was removed from one of the numeric fields. Try comparing that file with the same from a fresh copy of Drupal and see if there's a difference – Clive Aug 12 at 14:29

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.