I have opened a ticket for you on this issue so it can be looked into further. Did you ever go into this definition file and move the get contents function to the top of the page? What happens when you do that? If you get the same error about the weight conversion being redeclared then it would seem that the file was included but the get contents was not a part of it.
If you can move the get contents function to the top of this file and do not get an error about the get contents being redeclared then you might want to try making a copy of this file minus everything after the get contents function at the top of the file. If this did work for you it would just be a temporary fix.
Make sure that you update your ticket with any important details or access to the server so that we can look into this further.