On the d.o D7 dev site, when we clear the cache and reload a project issue page, we're getting a lot of PHP notice-level warnings from this module:
Notice: Undefined index: object_base_table in sampler_views_data() (line 36 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/sampler/views/sampler.views.inc).
Notice: Undefined index: object_base_table in sampler_views_data() (line 38 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/sampler/views/sampler.views.inc).
Notice: Undefined index: object_primary_key in sampler_views_data() (line 39 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/sampler/views/sampler.views.inc).
Notice: Undefined index: object_base_table in sampler_views_data() (line 36 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/sampler/views/sampler.views.inc).
Notice: Undefined index: object_base_table in sampler_views_data() (line 38 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/sampler/views/sampler.views.inc).
Notice: Undefined index: object_primary_key in sampler_views_data() (line 39 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/sampler/views/sampler.views.inc).
Notice: Undefined index: object_base_table in sampler_views_data() (line 36 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/sampler/views/sampler.views.inc).
Notice: Undefined index: object_base_table in sampler_views_data() (line 38 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/sampler/views/sampler.views.inc).
Notice: Undefined index: object_primary_key in sampler_views_data() (line 39 of /var/www/dev/project-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/sampler/views/sampler.views.inc).
I'll see if I can make a patch...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1706716-sampler-php-warning.patch | 637 bytes | jhodgdon |
Comments
Comment #1
jhodgdonHere's a patch. Unfortunately created with bzr since that is what is on the dev sites. You should be able to apply it using patch -p4 (or manually apply since it is small).
Comment #2
hunmonk commentedlooks good, committed and pushed to 6.x-1.x and 7.x-1.x, thanks!