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
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

sun - October 25, 2008 - 13:06

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

paradiso - December 11, 2008 - 17:08

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

dwees - December 31, 2008 - 12:39

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

 
 

Drupal is a registered trademark of Dries Buytaert.