The error message you posted indicates that the function that is missing is "acs_object__update_last_modified(integer)".
You really should not mix versions of packages. The version of file storage that is compatible with OpenACS 5.1.1 is file storage 5.1.0.
There is a development version of file-storage tagged as openacs-5-1-compat, but it is not finished yet.