Issue integrating with wordpress

QuestionsIssue integrating with wordpress
c3media asked 4 years ago

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

2 Answers
c3media answered 4 years ago

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?

Abu Ghufran Staff answered 4 years ago

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.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

1 + 7 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?