Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
Without your button code it's hard to answer, nevertheless I shall attempt it.
It looks like a permissions issue. I'm guessing you're referring to some custom class in your button code, and the profiles of some of your users do not have access to this class. Check the permissions of the profiles of the users experiencing this issue to see whether they have the required access.
If that doesn't help, please post your button code so we can analyse the problem better.