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

woff2?v=4.3.0 Failed to load resource #5559

Closed
stefanahman opened this issue Feb 2, 2015 · 19 comments
Closed

woff2?v=4.3.0 Failed to load resource #5559

stefanahman opened this issue Feb 2, 2015 · 19 comments
Labels
Milestone

Comments

@stefanahman
Copy link

Getting this error when loading application homepage. Using rails-assets-fontawesome-4.3.0:
http://localhost:3000/fonts/fontawesome/fonts/fontawesome-webfont.woff2?v=4.3.0 Failed to load resource: the server responded with a status of 404 (Not Found)

@tagliala
Copy link
Member

tagliala commented Feb 2, 2015

Hi, that gem is not related to fontawesome

Maybe they forgot to include the new .woff2 file

Closing here

@tagliala tagliala closed this as completed Feb 2, 2015
@stefanahman
Copy link
Author

@tagliala Ok thanks! Do you know where I should post?

@tagliala
Copy link
Member

tagliala commented Feb 2, 2015

what is the exact name of the gem?

@stefanahman
Copy link
Author

This is a part of my Gemfile:

source 'https://rails-assets.org' do
  ...
  gem 'rails-assets-fontawesome'
  ...
end

@stefanahman
Copy link
Author

This could be a duplicate of #5532. But I just get 404 on the woff2 font.

@tagliala
Copy link
Member

tagliala commented Feb 2, 2015

@stefanahman ok got it.

Sorry but I don't know how to help. Let's talk in #5532

I still don't know this "rails-assets-*" stuff. I should check bootstrap to understand what they do to deal with this case but I really have no time in these days

@tagCincy
Copy link

PR #5655 should correct this. woff2 declaration was left off component.json.

@FyerPower
Copy link

@tagliala I was running into the exact same issue where the rails-assets basically the woff2 file wasn't being pulled in. After looking at how Rails Assets worked and how your source code is setup, it appears that you are missing the include of the woff2 file in the component.json file when you updated it to 4.3.0, which happens to be where Rails Assets to pulling this from. My coworker @tagCincy and I forked and updated to verify this fixed the issue and it does! Woot! PR Made :D

@tagliala
Copy link
Member

@gamegenius86 thanks. So we need a 4.3.1 version

@tagliala tagliala reopened this Feb 12, 2015
@tagliala tagliala added the bug label Feb 12, 2015
@tagliala tagliala added this to the 4.3.1 milestone Feb 12, 2015
@tagliala
Copy link
Member

Closed via #5657

tagliala added a commit that referenced this issue Feb 13, 2015
@YovavGad
Copy link

Had the same issue. this is how I solved it:
Make sure the woff2 MIME type is being recognized by the web server... dahhh...
In my case - updating Web.config

(what's wrong with this comment system...? added image instead):

web-config

@rockstardev
Copy link

@YovavGad answer did it for me... here is text version of what he posted for those who'd like to copy-paste:

  <staticContent>
    <remove fileExtension=".woff" />
    <remove fileExtension=".woff2" />
    <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
    <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
  </staticContent>

tagliala added a commit that referenced this issue Jul 28, 2015
@erikmartinessanches
Copy link

@YovavGad answer solved this for me.

@Kurama-X
Copy link

Kurama-X commented Jun 5, 2016

Thanks @YovavGad Was able to get rid of this error with your answer

@elsep2003
Copy link

@YovavGad, That solution was perfect. Thank you.

@bertrandjc
Copy link

Thank you, @YovavGad. Its now fixed.

@santosh-k1
Copy link

Yes Thanks @YovavGad it working

@gptA
Copy link

gptA commented May 9, 2017

@YovavGad 在哪加那段代码了,我用的是tomcat服务器

@shikhapathak
Copy link

shikhapathak commented Jul 12, 2017

@YovavGad where is web.config locate in yii2

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

No branches or pull requests