Forum Moderators: open

Message Too Old, No Replies

Javascript error with Quantcast Consent Management Platform

         

jc2021

4:27 pm on Mar 8, 2021 (gmt 0)

5+ Year Member Top Contributors Of The Month



I am getting this error on my WP site:

VM1013 cmp2.js:1 Uncaught TypeError: n is not a function
at e.apiCall (VM1013 cmp2.js:1)
at new e (VM1013 cmp2.js:1)
at Module.<anonymous> (VM1013 cmp2.js:1)
at n (VM1013 cmp2.js:1)
at Object.<anonymous> (VM1013 cmp2.js:1)
at n (VM1013 cmp2.js:1)
at VM1013 cmp2.js:1
at VM1013 cmp2.js:1


Does anyone know how to fix this? Their support isn't replying.

NickMNS

4:52 pm on Mar 8, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It is nearly impossible to help without out knowing the specifics of the implementation. But I will try a guess.
n is not a function

This kind of error often occurs when the object or target of a function is not what it supposed to be, and in most cases what you are sending the function is null, when it should be some type of object.
at e.apiCall (VM1013 cmp2.js:1)

My guess is that either that you are not sending anything in the apiCall, so it returns none, or your are sending the wrong thing.

Again these are guesses, and the answer is vague because there isn't sufficient information to be more specific. But it should be enough to get you looking in the right place.