Forgive me if I missed something, but this makes no sense to me. contentid returns Undefined Index error and the entire module breaks. Please tell us your Joomla version, PHP version and MySQL version, and if you have ever installed any other commenting components as there may be lingering (yComments, JomComment, JComments, etc)
Also tell us if you have done any upgrading on this site (Joomla 1.0 > 1.5, or JoomlaComment 3.26 > 4.0, etc.)
Daniel did you actually try the "fix" in the original post?
EDIT: Do you have one of the outdated versions of sh404SEF installed (all the ones that were free) or are you up to date (paid versions)? If you're up to date please make a screen dump of your settings and I will compare to mine, I can put this in a FAQ about JoomlaComment or sh404SEF.