Some players can't get the magic ball to upgrade the Totem of Happiness. The game says that the magic ball can be received after the stairs have been fixed but the stairs can be fixed only after upgrading the Totem of Happiness. We understand your frustration but it's not a bug in game! The solution for this issue is very simple.
You just need to scroll all the dialogues on the left side of the screen and look for an unread one. Once you have read it, the issue will be solved.

We recommend not to leave any of the dialogues unread. That may lead to some pauses in the game.