Jquery errors appear only locally but works normally in production

Hi guys.

Firstly, i would like to thank for your attention to read my post.

Since i got my project from server to make a major refactoring, i’m facing with several jquery erros like:

-TypeError: $.browser is undefined

-TypeError: jQuery.easing[this.easing] is not a function

and specifically with cgridview function:

-TypeError: $.fn.yiiGridView is undefined

In the begining, i tried to solve them, but after a time, i thought: "Why these errors appear only locally, if the project is exactly the same as is on the server?"

Thinking logically, these errors should also appear in server, but not. It’s all right.

Can someone explain to me why this is happening? I’m about to give up this project and rewriting in Yii2

Look at your page source, is jQuery being loaded?

Hi tampaphp.

These are the scrips that are started in the system home page:




<script type="text/javascript" src="/ponto_producao/assets/9a63736a/jquery.js"></script>

<script type="text/javascript" src="/ponto_producao/assets/9a63736a/jquery.yii.js"></script>

<script type="text/javascript" src="/ponto_producao/assets/9a63736a/jui/js/jquery-ui.min.js"></script>

<script type="text/javascript" src="/ponto_producao/js/jquery.blockUI.js"></script>

<script type="text/javascript" src="/ponto_producao/js/jquery.idletimer.js"></script>

<script type="text/javascript" src="/ponto_producao/js/jquery.idletimeout.js"></script>

<script type="text/javascript" src="/ponto_producao/assets/f99a6702/js/bootstrap-transition.js"></script>

<script type="text/javascript" src="/ponto_producao/assets/f99a6702/js/bootstrap-tooltip.js"></script>

<script type="text/javascript" src="/ponto_producao/assets/f99a6702/js/bootstrap-popover.js"></script>



And this error is already shown:




TypeError: $.browser is undefined

;(function($){var cont=($.browser.msie&&parseInt($.browser.version)<=7)?document...