tinymce “Link” popup throwing error, not working

The problem turned out to be that I added some custom javascript further down the page hat was somehow ruining the tinymce popup js. I wasn’t able to figure out exactly what was causing the problem, I needed to comment it out and it works okay now.