• Priority: High
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 15.01.21, 00:10
  • Opened by: Diane Berleux
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #20473 - Error $.cookie is not a function

Hi,

We get this error: $.cookie is not a function - commonscripts.min.js:1

Can you send us a solution to this?

Thanks

Comments

Fred 15 Jan 2021, 12:23

Hi, Diane.
There is no such error for me here https://daylilyparis.com/en/

How to see it?

Diane Berleux 15 Jan 2021, 13:33

At the moment I have put in comment this code:

var r = $(".cookie-message");
        $(".cookie-message .btn").click(function () {
            r.animate({ bottom: "-100px", opacity: "0" }, 500), $.cookie("cookie-message", "0", { expires: 180 });
        }),
            (1 != $.cookie("cookie-message") && null !== $.cookie("cookie-message")) ||
                setTimeout(function () {
                    r.animate({ bottom: "0", opacity: "1" }, 500);
                }, 4e3);

So the error doesn't show up.

Fred 15 Jan 2021, 13:34

Ok, so you have resolved it yourself, right?

Diane Berleux 15 Jan 2021, 16:14

Is it ok to cut this code in the file or is there a cleaner solution?

Fred 16 Jan 2021, 11:25

For now it's ok. We will check it out and provide cleaner solution in the theme update

Kean 25 Feb 2021, 21:03

Hello, i watching this ticket also.
Thanks