Same thing happend here; all my permalinks were frustrated. Somehow the number “65” was put in my permalink (mymainsite\65\mypage). Looking further I found out that this was due to the fact that when I upload a picture, although it was put on the right language, polylang somehow created the language “65” and put that language to the picture. When I tried to change te language to “NL” in my case that didn’t work. Another language was created (“118”). When I deleted all created languages my permalinks were fine again. Thing is that this way I cannot upload any pictures and put them to the right language. Even not if I tried to change the language from “65” to “NL” later on. Please note I have media on in Polylang. This is something I will need to translate my media descriptions in my media gallery. Is there a solution to this problem?