I have configured a proper view, and verified that the view outputs data when set to an additional Style.

I have tried moving the 'api' folder and file, v 1.2, all over the place.

I have tried disabling various display modules on the site to see if there was an incompatibility.

I read through the other similar issues in the queue.

What else can I try? Please?

Comments

jmiccolis’s picture

Category: bug » support

Hi Alex,

Does your browser generate any js errors? For example can you tell if it's able to load the timeline-api.js file? Can you view the json call back directly (it'll look like timeline/json?view=VIEWNAME)? If you've got firebug installed you should be able to try both of these fairly quickly using the 'net' tab.

On 'admin/settings/timeline' there is an advanced settings drop down where you can specify the location of the timeline-api.js which may also be helpful.

- jeff

wayfarer_boy’s picture

Hi. I'm using timeline-6.x-1.x-dev along with views-6.x-2.2 and date-6.x-2.0-rc6. I have created my own event CCK content type using a date field with to/from options, and have populated my site with around 10 dates, each filled with to/from info. I've been getting the same error, and enabled firebug's javascript console and tab options.

The console output says: "Timeline is not defined" and references line 5 of timeline.js: " var theme = Timeline.ClassicTheme.create();"

The net output states it cannot find the timeline-api.js file, but when I checked where it was looking (sites/all/modules/timeline/api/timeline-api.js), I found the folder didn't exist.

I then changed the Widget URL in the admin page (admin/settings/timeline > Advanced settings) to http://static.simile.mit.edu/timeline/api/timeline-api.js. This corrects the problems of Drupal not finding the api js files.

Unfortunately, this doesn't correct the problem. What now happens is that no timeline appears and this error appears:

    * warning: implode() [function.implode]: Invalid arguments passed in /var/www/drupal-6/sites/all/modules/date/date/date_handler_field_multiple.inc on line 65.
    * user warning: 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 'ORDER BY node.nid ASC, node_data_field_date_0.delta ASC' at line 1 query: SELECT node.vid AS _vid, node_data_field_date_0.delta as _delta, node.nid AS _nid, node_data_field_date_0.field_date_0_value AS value, node_data_field_date_0.field_date_0_value2 AS value2 FROM cc_content_field_date_0 node_data_field_date_0 LEFT JOIN cc_node node ON node.vid = node_data_field_date_0.vid WHERE node.vid IN (145,144,143,140,141,142,146,147,148,149,150,151,152,153) AND ORDER BY node.nid ASC, node_data_field_date_0.delta ASC in /var/www/drupal-6/sites/all/modules/date/date/date_handler_field_multiple.inc on line 67.
    * warning: implode() [function.implode]: Invalid arguments passed in /var/www/drupal-6/sites/all/modules/date/date/date_handler_field_multiple.inc on line 65.
    * user warning: 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 'ORDER BY node.nid ASC, node_data_field_date_0.delta ASC' at line 1 query: SELECT node.vid AS _vid, node_data_field_date_0.delta as _delta, node.nid AS _nid, node_data_field_date_0.field_date_0_value AS value, node_data_field_date_0.field_date_0_value2 AS value2 FROM cc_content_field_date_0 node_data_field_date_0 LEFT JOIN cc_node node ON node.vid = node_data_field_date_0.vid WHERE node.vid IN (145,144,143,140,141,142,146,147,148,149,150,151,152,153) AND ORDER BY node.nid ASC, node_data_field_date_0.delta ASC in /var/www/drupal-6/sites/all/modules/date/date/date_handler_field_multiple.inc on line 67.
cglusky’s picture

@jmiccolis did we ever get the date2 api patch applied to 6 branch?

#280038: Support Date 2

jmiccolis’s picture

I don't believe we did. Thanks for putting this back on my radar. Let me see if I can squeeze in a quick look at it in the next couple days.

bullz’s picture

Watching this

jmiccolis’s picture

Status: Active » Postponed (maintainer needs more info)

@wayfarer_boy Does this SQL error happen when you switch to a list view of the same content? I've got a similarly setup site and I can't reproduce the error.

If you get the same issue on a list timeline this is probably a views issue. If the SQL error goes away however can you post a step-by-step guide to reproduce the what you're seeing? Thanks.

xamanu’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

closing because of inactivity.