If I read your message correctly, you used a Pyrex(glass?) pan for your second try. Was the first pan metal? Usually when I use glass I reduce the temperature by 25 degrees. I have also had flour be bad when I bought it. Not often, but have had it happen 2 or 3 times in the past 40 years.
Give it one more try paying close attention and with fresh flour. Good luck.