Hello,

after installing the "Date Repeat Field" sub-module on a fresh Drupal 7.12 setup I receive the following message:

Notice: Undefined index: fields in field_info_fields() (Zeile 596 von /Users/.../modules/field/field.info.inc).
Warning: Invalid argument supplied for foreach() in field_info_fields() (Zeile 596 von /Users/.../modules/field/field.info.inc).

When I un-install it, the message disappears again.
I installed the RC1 module with the same sub-modules on a Drupal 7.10 setup a couple days ago without any problems. Maybe the field module was updated and there is the problem.

Please let me know if you need more information.

Stefan

Comments

karens’s picture

Status: Active » Postponed (maintainer needs more info)

I am unable to replicate any problem when installing the latest dev version of the code on a new install. Please try the dev version and see what happens.

karens’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No response. Closing.

protools’s picture

Version: 7.x-2.0-rc2 » 7.x-2.2

Pressflow 7.12 same Warning

protools’s picture

Status: Closed (cannot reproduce) » Active

PHP 5.3.6

karens’s picture

Status: Active » Closed (duplicate)
dkingofpa’s picture

Version: 7.x-2.2 » 7.x-2.x-dev
Status: Closed (duplicate) » Active

Need a "Date Repeat Field" component. :)

I don't think this is a duplicate of #1509012: Date Repeat API causing Fatal error: Cannot access empty property. I'm using the HEAD of 7.x-2.x (from 05/12/2012) and still have this issue on Drupal 7.14. The issue happens during a drush site-install where the date_repeat_field module is being installed via a profile. Here's a call stack:

PHP 5.3.2-1ubuntu4.15 (Linux)
#0 /srv/www/modules/field/field.info.inc(596) Undefined index: fields
#1 /srv/www/sites/all/modules/contrib/date/date_repeat_field/date_repeat_field.module(164): field_info_fields()
#2 /srv/www/sites/all/modules/contrib/date/date_repeat_field/date_repeat_field.module(71): date_repeat_field_bundles()
#3 [internal function]: date_repeat_field_menu()
#4 /srv/www/includes/menu.inc(2731): call_user_func('date_repeat_fie...')
#5 /srv/www/includes/menu.inc(2700): menu_router_build()
#6 /srv/www/modules/menu/menu.module(181): menu_rebuild()
#7 [internal function]: menu_enable()
#8 /srv/www/includes/module.inc(799): call_user_func_array('menu_enable', Array)
#9 /srv/www/includes/module.inc(457): module_invoke('menu', 'enable')
#10 /srv/www/includes/install.core.inc(1538): module_enable(Array, false)
#11 [internal function]: _install_module_batch('menu', 'Menu', Array)
#12 /srv/www/includes/batch.inc(284): call_user_func_array('_install_module...', Array)
#13 /srv/www/includes/form.inc(4488): _batch_process()
#14 /srv/www/includes/install.core.inc(446): batch_process('install.php?pro...', 'http://localhos...')
#15 /srv/www/includes/install.core.inc(342): install_run_task(Array, Array)
#16 /srv/www/includes/install.core.inc(79): install_run_tasks(Array)
#17 /usr/share/php/drush/commands/core/drupal/site_install.inc(59): install_drupal(Array)
#18 /usr/share/php/drush/commands/core/site_install.drush.inc(152): drush_core_site_install_version('xforty', Array)
#19 [internal function]: drush_core_site_install('xforty')
#20 /usr/share/php/drush/includes/command.inc(324): call_user_func_array('drush_core_site...', Array)
#21 /usr/share/php/drush/includes/command.inc(198): _drush_invoke_hooks('site-install', Array, 'core')
#22 [internal function]: drush_command('xforty')
#23 /usr/share/php/drush/includes/command.inc(165): call_user_func_array('drush_command', Array)
#24 /usr/share/php/drush/drush.php(90): drush_dispatch(Array)
#25 /usr/share/php/drush/drush.php(59): _drush_bootstrap_and_dispatch()
#26 /usr/share/php/drush/drush.php(14): drush_main()
#27 {main}"
dkingofpa’s picture

If I install/enable date_repeat_field from the modules page, there are no errors output to the page. For example:

  1. drush site-install (without enabling date_repeat_field)
  2. Go to /admin/modules
  3. Check Date Repeat Field
  4. Click "Save configuration" button
  5. Everything appears to be fine...no warnings or errors on the page.
czigor’s picture

Component: Date Field » Date Repeat API

Same behaviour here. I'm installing my site with a custom install profile. As it can be seen from the above stack, the warning message comes when the menu module is being enabled and when the date_repeat is not even enabled yet.

czigor’s picture

Issue summary: View changes

updated description