Hi, I was having this problem too and realised that for me it was linked to an error I'm having with the pets in general. My dog was not trained to stay by my sim; when I trained him to stay it instead registered him as having learned to sit up, and all of a sudden this new pet with little behavioural training could be commanded to do most tricks and about half of the possible learned behaviours. I had to move the family in and out of their home to get away from the dog coming home after work ( I had saved not long before the point which he got home) and it always crashing when he was supposed to recieve the promotion for work with a learned command he technically didn't have. I put the dog up for adoption and got a new one and had the same glitch with the learned commands. I removed all cc, cleared my caches, created a blank neighbourhood, moved in a family, got a dog, same glitch upon teaching it to shake. I'm trying to find out if other people are having this glitch at the moment. Have you seen this in your game?
I'm on windows 10, Sims 2 Legacy edition.