• Hi,

    I’m getting the following error in the console and the whole page doesn’t load:

    Uncaught TypeError: $.cookie is not a function
    at HTMLDocument.<anonymous> ((index):625)
    at fire (jquery-1.12.4.js:3232)
    at Object.fireWith [as resolveWith] (jquery-1.12.4.js:3362)
    at Function.ready (jquery-1.12.4.js:3582)
    at HTMLDocument.completed (jquery-1.12.4.js:3617)
    (anonymous) @ (index):625
    fire @ jquery-1.12.4.js:3232
    fireWith @ jquery-1.12.4.js:3362
    ready @ jquery-1.12.4.js:3582
    completed @ jquery-1.12.4.js:3617

    If i change line 328 of the wpc.php file from:

    wp_enqueue_script(‘woodiscuz-cookie-js’, plugins_url(WPC_Core::$PLUGIN_DIRECTORY . ‘/files/js/jquery.cookie.js’), array(‘jquery’), ‘1.4.1’, false);

    to:

    wp_enqueue_script(‘woodiscuz-cookie-js’, plugins_url(WPC_Core::$PLUGIN_DIRECTORY . ‘/files/js/jquery.cookie.js’), array(‘jquery’), ‘1.4.1’, true);

    Then it works fine. Would you be able to make this change in the next update please? The plugin seems to work fine with it now?

    Thanks,
    Chris

  • The topic ‘$.cookie is not a function error in console’ is closed to new replies.