This type of error usually occurs for one of two reasons, either the include file that defines this function doe not appear before the line of code is hit, or include file is not uploaded to the server. It looks like it is a code order issue based on where the error is coming from. You need to ensure that you have your include lines of code for the CMS above this line of code on your page.