Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource interpreted as Font but transferred with MIME type text/html #6

Closed
borgogelli opened this issue Apr 3, 2015 · 2 comments
Closed

Comments

@borgogelli
Copy link

Hi

FontsAwesome's fonts are not loaded, and so icons on toolbar are not rendered

Here the errors in the browser's console:

Resource interpreted as Font but transferred with MIME type text/html: "http://.../_debugbar/fonts/fontawesome-webfont.woff2?v=4.3.0".page:1
Resource interpreted as Font but transferred with MIME type text/html: "http://.../_debugbar/fonts/fontawesome-webfont.woff?v=4.3.0".page:1 
Resource interpreted as Font but transferred with MIME type text/html: "http://.../_debugbar/fonts/fontawesome-webfont.ttf?v=4.3.0".

The raw DebugBar and Slim are working fine together, no fonts problem.

Any advice ?

Regards

Andrea

@borgogelli
Copy link
Author

Solution:

I have enabled the following php extension in the php.ini config file

extension=php_fileinfo.dll

Then a new error is shown in the browser console;

GET: .../fontawesome-webfont.woff2?v=4.3.0 

That font is missing from the DebugBar package too (but there is no error with that package)
So I have downloaded the fonts-awesome zip archive from the web.
Then I have extracted the missing font in the DebugBar's fonts path (inside the vendor folder).

And now everything is working fine !

Regards from Italy

Andrea

@yusukezzz
Copy link
Owner

Thank you for the solution.
I'll add this solution to README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants