Font files don't load on multi-site installation
novusaxis - May 6, 2008 - 18:18
| Project: | Dynamic Rendering |
| Version: | 5.x-1.1 |
| Component: | sIFR plugin |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I found a bug in the sIFR plugin on line 270 of version "$Id: sifr.inc,v 1.1.2.1 2008/01/19 03:45:42 sun Exp". On our multi-site installation, the sIFR fonts are coming up with 404 errors. If "file_directory_path()" is used instead of "base_path()" the code should work.
Cheers,
DJ

#1
Hm. This is a bit more complicated.
We are currently storing the complete font file path for each rule, i.e. files/render/fontfile.ext
But file_directory_path would already return the "files" part of that path.
So, the proper fix would be to store only "render/fontfile.ext" in the database, and use file_directory_path() to prefix it correctly.
However, that also requires a straightforward module update function for existing users.
Patches are welcome.
#2
I have the same problem in Drupal 6. The module works perfectly, fonts are uploaded in sites/default/files/render/font.swf but are not "loaded" on screen. Any hints?
#3
Yes, put your fonts in a /render directory in your root directory, and everything works fine. I think this can safely be said to be a bug.
Dave