Full error:
Notice: Undefined index: base table in date_views_base_tables() (line 103 of C:\wamp\www\sites\all\modules\date\date_views\date_views.module).
Just updated the module this evening as per the notice received and I get the above message on almost every page.
What do I do to fix this?
Thanks.
:)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | date-basetablenotice-1484640-0.patch | 682 bytes | onelittleant |
Comments
Comment #1
Samael27 commentedfollowing
Comment #2
Samael27 commentedStill nothing ? :(
For now i've had more checks in the module but i'm not sure it's the best way...
Comment #3
onelittleant commenteddate_views_base_tables is working under the assumption that all implementors of hook_entity_info are setting a 'base table' field in their definition. It is not clear from the documentation of hook_entity_info whether the 'base table' field is required. The attached patch checks that the 'base table' field is set prior to utlizing it. I am not aware of any core modules that define entities that do not have base tables, so it is likely that this is an interaction with a contributed module or with some custom modification of entity info in hook_entity_info_alter. At any rate, date can be made tolerant of the issue.
Comment #5
karens commentedThe test failure is unrelated to this patch, so I'm committing it.
Thanks!
http://drupalcode.org/project/date.git/commit/125bab0
Comment #6
jjmackow commentedthis does eliminate the warning for "date_views_base_tables" error. Thanks