Hello Tonidas, gyms have been a bit buggy as of late so that may have been the issue, they should be fixed sometime soon. Also, make sure that you are trainer level five which is the required level to participate in gyms.