When I turn on javascript caching in D7, I get this error:
Warning: file_get_contents(/snni/d7/code/sites/all/libraries/simile_timeline/timeline_js/timeline-api.js) [function.file-get-contents]: failed to open stream: No such file or directory in drupal_build_js_cache() (line 4759 of /Users/auzigog/Projects/snni/d7/code/includes/common.inc).
This might be a libraries error, but I think it's actually timeline.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1232966-timeline-js_aggregation-4.patch | 605 bytes | olofbokedal |
Comments
Comment #1
xamanu commentedTagging to the right version. This is an issue we should definitively address in order to get a full and stable D7 release.
Comment #2
polskikrol commentedNoticed the same issue... wondering why timeline refuses to work. JS Caching!
Comment #3
Anonymous (not verified) commentedAny idea to make it work or a workaround?
Comment #4
olofbokedal commentedThe PHP warning is exactly like #1587416: JS Warning and is not related to JS aggregation.
However, the module won't work when aggregation for JS is enabled, because the timeline-api.js won't cooperate. Since this is a file from an external library, i suggest that aggregation should be disabled for that file only. This is done by adding
'preprocess' => FALSEto the settings fordrupal_add_js().The supplied patch fixes that. If the patch won't apply, please try and apply the patch at http://drupal.org/node/1587416#comment-6089238 first.
Comment #5
vacilando commentedTimeline did not work for me until I happened to discover this issue.. turned JS aggregation off and the visualization appeared. I even think it is in fact a bug since as is the module does not work with (a particular configuration of) Drupal 7.
I've then re-enabled JS aggregation and applied @ojohansson's patch from #4, which has worked fine. I propose to apply this patch for the time being so that everybody (with JS aggregation on or off) can use the timeline. However, I also propose not to close this issue because its main aim is to achieve aggregation for this module's JS files.
Comment #6
clemens.tolboomThis relates to #1587416: JS Warning
Comment #7
xamanu commentedCommitted. Thank you!