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.
:)

CommentFileSizeAuthor
#3 date-basetablenotice-1484640-0.patch682 bytesonelittleant

Comments

Samael27’s picture

following

Samael27’s picture

Still nothing ? :(
For now i've had more checks in the module but i'm not sure it's the best way...

onelittleant’s picture

Status: Active » Needs review
StatusFileSize
new682 bytes

date_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.

Status: Needs review » Needs work

The last submitted patch, date-basetablenotice-1484640-0.patch, failed testing.

karens’s picture

Status: Needs work » Fixed

The test failure is unrelated to this patch, so I'm committing it.

Thanks!

http://drupalcode.org/project/date.git/commit/125bab0

jjmackow’s picture

this does eliminate the warning for "date_views_base_tables" error. Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.