Home Forums Porto Admin Template Select2 and jQUery error

This topic contains 5 replies, has 3 voices, and was last updated by  Support3 2 months, 1 week ago. This post has been viewed 136 times

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10028239

    stesvis
    Participant

    Hello,

    in page where I use Select2, I noticed that i get these errors in the browser console:

    Unhandled exception at line 1, column 319 in https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/js/select2.full.min.js
    0x800a1391 – JavaScript runtime error: ‘jQuery’ is undefined

    (v4.0.5 is the same that comes with the Porto theme I have).

    Any idea?


    #10028240

    stesvis
    Participant

    Note: jquery is the first script i include in the page


    #10028241

    stesvis
    Participant
    This reply has been marked as private.
    #10028242

    Support
    Keymaster
    This reply has been marked as private.
    #10028250

    stesvis
    Participant
    This reply has been marked as private.
    #10028251

    Support3
    Keymaster

    Hi,
    Seeing your code I noticed that Select2 is starting before JQuery
    Actually exist four calls to the js of select2 in your code before the JQuery call, delete them and see if it solves the problem.

    Please, try that and let us know if you need further assistance.

    Kind Regards,

    Otávio


Viewing 6 posts - 1 through 6 (of 6 total)