Are you sure about the last parameter ($locales)? I don't think the base class has that parameter.