Sorry but don't really know. I would probably take her to the GP to make sure she doesn't have an ear infection but apart from that are you trying the old favourites like panadol and bonjela to try and ease her mouth pains to see if that helps her ear pain?
Best of luck and I really hope this passes for you both real soon.