Pop Up causes internal server errors, and also doesn't detect referrers

I'm unable to get popups working at all - and I often get internal server errors when it's activated