I am working on my senior project and I am trying to implement Date Browser in Views but apparently there is an issue with Date API that is causing a number of errors. Also, I am no longer able to select my custom date field as an argument in Date Browser. I have run these errors by the maintainers of Views (http://drupal.org/node/1111146) and they have concluded that it must be an error within Date. You can view my site in which I am experiencing the errors live at bentsh.com/mission
The following are the errors I receive:
Notice: Undefined index: group in _date_views_fields() (line 61 of C:\wamp\www\drupal7\sites\all\modules\date\date_views\includes\date_views_fields.inc).
Notice: Undefined property: views_plugin_query_default::$fields in views_plugin_query_default->query() (line 1140 of C:\wamp\www\drupal7\sites\all\modules\views\plugins\views_plugin_query_default.inc).
Warning: Invalid argument supplied for foreach() in views_plugin_query_default->compile_fields() (line 1058 of C:\wamp\www\drupal7\sites\all\modules\views\plugins\views_plugin_query_default.inc).
Notice: Undefined property: views_plugin_query_default::$fields in views_plugin_query_default->query() (line 1140 of C:\wamp\www\drupal7\sites\all\modules\views\plugins\views_plugin_query_default.inc).
Warning: Invalid argument supplied for foreach() in views_plugin_query_default->query() (line 1142 of C:\wamp\www\drupal7\sites\all\modules\views\plugins\views_plugin_query_default.inc).
Warning: Invalid argument supplied for foreach() in views_plugin_query_default->compile_fields() (line 1058 of C:\wamp\www\drupal7\sites\all\modules\views\plugins\views_plugin_query_default.inc).
Debug:
'Exception: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'FROM
node node
LIMIT 10 OFFSET 0\' at line 1'
in views_plugin_query_default->execute() (line 1354 of C:\wamp\www\drupal7\sites\all\modules\views\plugins\views_plugin_query_default.inc).
Comments
Comment #1
karilu_ec commentedSee how the notice in line 61 went away for me
http://drupal.org/node/1103790#comment-4291872
Comment #3
bentsh commentedThanks, that fixed that single error, but the rest still remain.
Comment #4
cezaryrk commentedsubscribe
Comment #5
cezaryrk commentedI added 2 lines after line 44 in date_navigation_plugin_style.inc and this solve the problem with the error message. The error occurse because no field is added for the SQL SELECT statement.
Comment #6
damienmckennaJust ran into this.
Comment #7
scthomps312 commentedSubscribing
Comment #8
karens commentedLots of fixes to Date and Calendar since this report. It should be fixed with latest dev version of Date and latest Views.
Comment #9
karens commentedMarked this fixed too soon, it is indeed still broken. Looking into this now.
Comment #10
karens commentedStep one, uncomment $this->view->query->clear_fields();
Still other errors tho.
Comment #11
karens commentedI think I have this working right now. Ironically I had to clear fields to avoid one error and add a dummy field to avoid others, but it seems to be working right now.
Comment #13
eglobal commentedI just updated date / calendar, added content for the first time. These are the new errors (not sure if the first one was there before?). They may all just be compatibility issues with the wrong version of views, but if not and so you have them.
Versions using:
Date: 7.x-2.0-alpha3 (this was the latest when I downloaded)
Calendar: 7.x-2.0-alpha1
Views: 7.x-3.0-beta3
New Errors:
Comment #14
paulgemini commented@eglobal - I'd go with the latest dev releases of Calendar, Views, Ctools, and Date. Views just changed again yesterday and Ctools changed on May 18th... From the documentation: