With the newest version of the package tablefootnote (version 1.1a), something is broken when using \tablefootnote within a table environment, something I discovered when a paper I am writing refused to compile after updating packages. What can I do to circumvent this problem (until the packages is fixed?)? Below a MWE and the error thrown.
The bug was fixed in version 1.1b, which was just uploaded to the CTAN team. Please allow a little time for processing and spreading to the mirrors. The problem was the \ifHy@hyperfootnotes construct (well, several of this) inside another \if, and LaTeX got confused which \fi and which bracket belonged to which \if. Sorry for the inconvenience and thank you for reporting the bug!
(To circumvent the problem before the new version is installed on your system, please additionally load the hyperref package. For a printed document this should not change too much.)