When you open your class, do you see this message:
"This class has ended. You can still make exercises, but your progress will not be stored".
This message shows up if the end date for the class has passed. If you want to extend the class, you can do this by going to the Teacher tab, Settings, and then "Start and end date".
Change the end date and the message will be removed from the homepage.