Hello Abu,
I am trying to integrate grid in wordpress but get issue Please check your database connection configuration. Access denied for user.
Privilegies are ok for WordPress DB.
Thank you
User permission resolved, now i’m getting this issue:
Uncaught TypeError: Cannot read property ‘bridge’ of undefined
at
It is a problem with Jquery library, how to solve it?
Q) I’m getting JS error in browser console: ‘jqGrid’ is undefined OR Cannot read property ‘bridge’ of undefined?
It’s usually due to order of including jQuery JS file OR possibly duplicate inclusion. Please see below.
Correct: Including jQuery before jqGrid JS file
<script src=”../../lib/js/jquery.min.js” type=”text/javascript”></script>
<script src=”../../lib/js/jqgrid/js/i18n/grid.locale-en.js” type=”text/javascript”></script>
<script src=”../../lib/js/jqgrid/js/jquery.jqGrid.min.js” type=”text/javascript”></script>
<script src=”../../lib/js/themes/jquery-ui.custom.min.js” type=”text/javascript”></script>
Incorrect: Not Including before jqGrid js file
<script src=”../../lib/js/jqgrid/js/i18n/grid.locale-en.js” type=”text/javascript”></script>
<script src=”../../lib/js/jqgrid/js/jquery.jqGrid.min.js” type=”text/javascript”></script>
<script src=”../../lib/js/themes/jquery-ui.custom.min.js” type=”text/javascript”></script>
<script src=”../../lib/js/jquery.min.js” type=”text/javascript”></script>
Incorrect: Including jQuery twice, by theme template or other plugin
<script src=”../../lib/js/jquery.min.js” type=”text/javascript”></script>
<script src=”../../lib/js/jqgrid/js/i18n/grid.locale-en.js” type=”text/javascript”></script>
<script src=”../../lib/js/jqgrid/js/jquery.jqGrid.min.js” type=”text/javascript”></script>
<script src=”../../lib/js/themes/jquery-ui.custom.min.js” type=”text/javascript”></script>
<!– some other code –>
<script src=”<some-other-plugin>/js/jquery.min.js” type=”text/javascript”></script>
Make sure you include JQuery JS file before other JS files and include only once in your page.