Getting this error on two separate sites:

Notice: Undefined index: base table in fc_views_data_alter() (line 49 of /.../sites/all/modules/fc/views/fc.views.inc).

On one, I completely disabled and uninstalled Field Complete and submodules, then enabled them again, still getting the errors.

FC is not alone, there are two others that are having the same issue (I think after Drupal 7.24 update, not sure, could have been other module updates during the same time):

Notice: Undefined index: base table in forward_views_data() (line 13 of /.../sites/all/modules/forward/views/forward.views.inc).
Notice: Undefined index: base table in forward_views_data() (line 49 of /.../sites/all/modules/forward/views/forward.views.inc).
Notice: Undefined index: base table in fc_views_data_alter() (line 49 of /.../sites/all/modules/fc/views/fc.views.inc).
Notice: Undefined index: base table in votingapi_views_data_alter() (line 282 of /.../sites/all/modules/votingapi/views/votingapi.views.inc).

Comments

adaddinsane’s picture

Assigned: Unassigned » adaddinsane

More likely to be PHP upgrade fault - have you moved to 5.4? It's stricter and plays havoc with 3rd party modules.

I'm usually pretty careful but looks like I missed a check (as did the authors of the other modules).

Easy to fix though.

deanflory’s picture

Looks like I did last time I updated, now on PHP 5.4.25. I was on 5.3.28.

Thanks for your time to look into this! Feeling better now that this isn't some "unknown" issue with my installation I've been working on for far too long.

deanflory’s picture

  • PHP 5.3.27 END OF LIFE
  • PHP 5.3.28 DEPRECATED
  • PHP 5.4.25 Current Recommended <<<<<<<<
  • PHP 5.5.9 EXPERIMENTAL
adaddinsane’s picture

Hi quick fix for this


    if (empty($entity_info['base table'])) {
      continue;
    }

placed immediately after

  foreach (entity_get_info() as $entity_type => $entity_info) {

Something like that will probably work for the other ones.

(Just because a version of PHP is recommended doesn't mean it gets used commonly - I'm working on a major site which is on 5.2)

adaddinsane’s picture

Status: Active » Needs review

This change has been updated to the Dev version - could take up to 24 hours to appear.

deanflory’s picture

Thanks adaddinsane! I'll check it out and if I don't reply again the problem is resolved.

deanflory’s picture

The latest dev appears to have fixed the issue.

adaddinsane’s picture

Status: Needs review » Closed (fixed)