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?

CommentFileSizeAuthor
#1 Blogs2.view_.txt4.55 KBfractile81

Comments

fractile81’s picture

StatusFileSize
new4.55 KB

Go figure, I forgot the Views export... attached.

fractile81’s picture

Just 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:

include_once(sites/all/modules/contrib/date/date_api.views.inc) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in C:\www\d6\includes\theme.inc on line 288.
fractile81’s picture

Version: 6.x-2.2 » 6.x-2.4
damienmckenna’s picture

Status: Active » Closed (won't fix)

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