Hi
I'm having a big problem with this error here its showing up all over the site.
Warning: file_get_contents(/......../sites/all/libraries/simile_timeline/timeline_js/timeline-api.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (line 1482 of /......./html/includes/locale.inc).
I changed the files permission to 777 but still same message.
Anyone else who faced the same problem. or anyone who can help ? :)
Cheers
Rami
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1587416-timeline-drupal_add_js-5.patch | 1.59 KB | clemens.tolboom |
| #4 | 1587416-timeline-drupal_add_js-4.patch | 1.3 KB | clemens.tolboom |
| #1 | 1587416-timeline-drupal_add_js-1.patch | 1.14 KB | olofbokedal |
Comments
Comment #1
olofbokedal commentedThis is caused because the JS file is added using the base path of the site.
If you look at the http://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_a... function, it says
regarding the path of the file.
This patch should fix this, without causing any unexpected behaviors.
Comment #2
clemens.tolboomThis relates to #1232966: Allow JavaScript aggregation
Comment #3
clemens.tolboom[edit: duplicated comment]
Comment #4
clemens.tolboomI moved the $base_path to where it is used and added some docs to explain why.
Comment #5
clemens.tolboomShould be $base_path
Attached patch fixes the above and added one code style fix.
Comment #6
clemens.tolboomComment #7
bkantique commentedHi
Sorry for the dummy question but I am new on Drupal.
I have the same issue as describe but I don't know how (and where or on which file) I can apply the proposed patch.
Can you explain the process to apply it please ?
thanks in advance
BR
BKantique
Comment #8
jchatard commentedTested and approved!
Thanks,
Jérémy
Comment #9
xamanu commentedCommitted. Thank you!!