With ForceTocOnEveryPage and mw 1.31.5, I got only white screen and no error messages.
When commentout ForceTocOnEveryPage I got normal screen.
So I guess ForceTocOnEveryPage have problem with mw 1.31.5.
You should
wfLoadExtension("ForceTocOnEveryPage");