Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get an error on pages with wysiwyg editors. The javascript library file is not found.
In the function advagg_process_js there is a check for not preprocessing certain files. The file tiny_mce.js should not be preprocessed. The url that is built is not correct. On line 861 the javascript line is nuilt with file_create_url and the resulting url is:
/sites/default/files/sites/all/libraries/tinymce/jscripts/tiny_mce/tiny_mce.js?T
and it should be off course:
/sites/all/libraries/tinymce/jscripts/tiny_mce/tiny_mce.js?T
Comment | File | Size | Author |
---|---|---|---|
#3 | advagg-fix-cdn-1077388-3.patch | 4.73 KB | mikeytown2 |
Comments
Comment #1
pgrond CreditAttribution: pgrond commentedWhy do you use file_create_url and not just url() ? (solves it for me, at least in this case)
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedfile_create_url is used because of the CDN module... looks like I should only use it if CDN is running.
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedThis patch has been committed.
Comment #4
pgrond CreditAttribution: pgrond commentedThanks, that works for me.