Installed but not able to get it to show data
harriska2 - June 19, 2007 - 20:27
| Project: | Timeline |
| Version: | 6.x-2.0-beta1 |
| Component: | Configuration |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
I know I'm doing something bone-headed. I have Drupal 5.1 installed with Date module (1.5), cck (1.5) and views (1.5).
Here's what I did:
1. Created a CCK type with a bunch of fields that included a CCK date type with a begin and end date.
2. Added some data
3. Created the view using timeline horizontal (and even tried vertical). I added the node title and field_date (CCK date type) fields. Then I added a filter for Node: Type Is One Of
4. Tested the created view but the test data do not show.
I'm not using the event module even though it is loaded.
Any suggestions?

#1
Hi,
Could you try setting the view to another type, list or table, just to see if you get any results?
Also, does the page throw any javascript errors?
#2
Thanks for the trouble-shooting tips. I copied the view, renamed it, and made it a table. It words fine:
http://teachernotes.org/lesson_sequencer2
Here is the view with timeline:
http://teachernotes.org/lesson_sequencer
I have firebug working and it checks out OK with the little green check. I clicked around on firebug and don't see anything wrong.
#3
Hello,
first of all, thanks for this module ! A simple way to use the Simile project is a very good thing.
I have a similar issue as the one above : No data is being shown.
Here is what I get with the "nodes timeline" view :
http://www.shadows.fr/timeline/nodes
Not quite what I expected. ;-)
Here is the source code :
<div class='view view-timeline-nodes'><div class='view-content view-content-timeline-nodes'><div class="timeline-wrapper"><div id="timeline_nodes" class="timeline" style="width: 100%; height: 400px"></div></div><script type="text/javascript">if (Drupal.jsEnabled) { $(document).ready(function() { createTimelineWidget("timeline_nodes", Timeline.HORIZONTAL, "Wed Jul 11 2007 15:00:02 GMT+0200", 0, [ Timeline.DateTime.DAY, Timeline.DateTime.MONTH ], "/timeline/json?view=timeline_nodes", "json"); }); }</script></div><div class='view-footer view-footer-timeline-nodes'><p>Drag timeline forward or backward to see more content.</p></div>
</div>
I have the same issue if I use a bloc instead of a page. I also tried to change the date feed type, but I still have the issue.
The widget url is the default adress : sites/all/modules/timeline/api/timeline-api.js
Any idea of what could be wrong ?
EDIT : IE seems to find an issue in the page : see screenshot attached
#4
The issue seems to be related to the timeline-api.js file : if I set the "Widget URL" to http://simile.mit.edu/timeline/api/timeline-api.js, everything is ok.
But if I used the file I host, http://www.shadows.fr/sites/all/modules/timeline/api/timeline-api.js , nothing is shown.
The weird thing is, both files really seem to be the same... Any idea?
#5
be shure that you have grapped the 1.2 version of "timeline".
svn-checkout: http://simile.mit.edu/repository/timeline/tags/1.2/
The trunk-version of "timeline" is 2.x.
perhabs that could solve your problem?!
#6
Thanks for your help, I will try this and see if it can be helpful !
#7
It works !
Actually I'm not sure about what the issue was... It seems that updating to drupal 5.10 might have helped too (? again, not sure of what I did, I tried to tweak several parameters in timelines too).
Thanks ! ;-)
#8
I ran into this same problem. I think the issue is .htaccess, and the inability of the module to grab the .js source code from the site/all/modules path. If I move the "api" directory up into the Drupal root directory (and then redirect the Widget URL as such), it works fine.
By the way, it is important to use the 1.2 version of Timeline. The latest 2.x version on the MIT website doesn't seem to work with this version of the Drupal Timeline module.
#9
Just thought I'd share this tip, for anyone who's pulling their hair out trying to figure out why things don't work: Be sure to check the permissions on your files. In particular, timeline.js and timeline.css. The same goes for the api directory and the subdirectories and files in api/, including timeline-api.js.
When in doubt, see if you can access timeline-api.js via your Web browser by typing in the full URL for it. Use the path that you provided to the timeline module in the advanced settings. For example:
http://(www.your-site-name-here.com)/sites/all/modules/timeline/api/timeline-api.js
#10
Thanks for the tip, I will check this asap on my own website !
#11
@harriska2 Have any of the tips in this thread helped, or does your timeline still refuse to show?
#12
I've been out of the loop for a while. I'll try to check it in a couple of weeks when I upgrade everything.
#13
I just had the problem outlined here and now suspect that there may indeed have something wrong with the permissions on many of the files I downloaded from the google code repo, as aasarava mentions above.
However, I found that the package provided here worked perfectly for me:
http://www.miccolis.net/random/timeline-1-2.tar.gz
Hope this helps anyone else having the same problem.
#14
Oh. I didn't see that link in the README. Thank you, B-Dot. I was having a terrible time trying to get the correct files from Google code.
And thanks to contributors for this GREAT module.
Eric
#15
I'm having this problem now. :/
Verified that I'm using the 1.2 version of the code, on Drupal 6.12, and I can browse to the Timeline .js code without issue.
What information would be useful to help debug this? I'd really love to get the module to work.
#16
Hello,
I am trying to get Timeline to work for 6.12.
I am trying to show all nodes published on the time line.
I am at a point where when I filter if I select unpublished nodes it displays the unpublished nodes with out an error in the timeline.
I if I don't filter it, or select "published" nodes I get an error stating:
"Caught Exception:Syntax Error: untermintaed string literal" When I view the page.
Any thoughts on this?
#17
I'm getting the same error. 6.12 version of Drupal, 1.2 version of timeline, and it's just not working.
The frustrating thing is that I had it working about two weeks ago, before the most recent update, and now it's not working. I wish I had not been too stupid to save a copy of the previous version of the module.
Anyone have access to the previous dev version ofthe 6.12 branch?
#18
subscribe. i'm also having the same problem, using 6.x
#19
As a warning: We do not have a stable 6.x release & the 6.x-dev branch is a moving target. the latest changes may require you to revisit your views and clear drupal's caches.
#20
#19 jmicolis -- good to know, thanks.
Side note: we were able to create basic timelines using the Exhibit module, tho there appears to be some issues with getting all our data to show; that module's approach is different, but incorporates a way to bring timeline (and other Exhibit) .js code local -- perhaps there's a point where the two efforts could be combined?
Particularly if your implementation of Timeline gives more flexibility, and could be called from Exhibit if both are installed...?
#21
hdavis, I'm getting the same (on Drupal 6.13 using Timeline 1.2) error ""Caught Exception:Syntax..." as you mentioned ifputting on the PUBLISH filter; but if I add other filters such as node type, the errors seem to disappear; Hope the bug can be fixed soon anyway ;)
#22
please test it with the newest 2.x branch of the timeline module.
#23
Marking this issue as fixed. Too many issues in one message. Tested the latest "Caught Exception:Syntax..." problem myself and I can not rebuild the error. Everything seems to be fixed.
#24
Automatically closed -- issue fixed for 2 weeks with no activity.