I'm not sure how or why I'm having this problem, but something in the Date modules is causing at least one of my Views to not work. It could be mismanagement of something on the Views side, but I wanted to start the issue threat here and see where it goes.
I have both Views and Date enabled (I had already disabled Calendar), among others. When trying to get data back for the exported View I have attached, nothing would be displayed. I could run the exact same query in MySQL and get data, but nothing was showing up.
After a lot of digging, I found out that the theme path for views_view was set to my date_api path, and the theme file was set to date_api.views.inc. This was being done by the Date Browser plugin definition, from what I can tell. When I commented out the theme key (example below) and rebuilt my caches, my View started displaying data again.
Example code:
// Display plugin for date navigation.
'date_nav' => array(
'title' => t('Date browser'),
'help' => t('Date back/next navigation to attach to other displays. Requires the Date argument.'),
'handler' => 'date_plugin_display_attachment',
'parent' => 'attachment',
'path' => "$path/includes",
//'theme' => 'views_view',
'use ajax' => TRUE,
'admin' => t('Date browser'),
'help topic' => 'date-browser',
),
I'm not sure what this might break, or if this is a cause or effect. Any thoughts?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Blogs2.view_.txt | 4.55 KB | fractile81 |
Comments
Comment #1
fractile81 commentedGo figure, I forgot the Views export... attached.
Comment #2
fractile81 commentedJust wanted to update this ticket to say I still have this problem in the latest Date and Views releases and that the above solution still solves it. I get errors in Watchdog that look like the following:
Comment #3
fractile81 commentedComment #4
damienmckennaUnfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.