How to fix “Uncaught TypeError: Cannot read property ‘indexOf’ of undefined” in WordPress

We had this error “Uncaught TypeError: Cannot read property ‘indexOf’ of undefined” in WordPress a few times. First time when we encountered this, it was a little scary. If something does not work after a WordPress or plugin update or maybe because the plugins were not updated for a long time then you can check the Inspector > Console.

Read more