My site has this error on load firebug "NetworkError: 404 CHttpException - http://localhost:8080/StyleStore/js/modernizr-2.0.6.min.js"

Anyone know why?

it’s because it cannot find that JS file… did you check if that file is there ?

Where can i find that file?

First of all did you develop your site? Did you include that file in your project? Do you need that file at all?

This error start to show when i use "if(!Yii::app()->request->isAjaxRequest)"

No.It’s not because of that,i dont know why this js is needed.

It doesn’t have to do with the isAjaxRequest method. The problem is that you render a view and try to include a js file that doesn’t exist at the provided url. Three options:

  1. You are trying to add the file yourself in your code (by either using clientscript or a script tag) but is simply isn’t there

  2. You are using an extension that makes use of this file and this is an extension bug

  3. You are using a css framework like foundation, bootstrap etc (they use modernizr as far as I know)

So this is not your project… then consult with whoever did add that line to the project :)

As for the modernizr check it’s site -

And for the future please read the posting guidelines if you want to explain better your problem -

yes, I am using extension StrobeMediaPlayback. It may be that?

yes it is my project. Why you do insist to say otherwise?