This is probably caused by a customization that might be in view CRMCMP_HDR_STD/GlobalFunctions
To verify it is your custom code try setting the parameter id WCF_INGORE_ENHANCEMT to 'A' on the test user and see if the error occurs. If it no longer occurs, then you need to revert the view back to the SAP Standard and then add in your customizations. By reverting the view copy the standard SAP HTML for that view over to the enhancement of your component for that view.
Take care,
Stephen