Switched to a school that doesn't accept D's and now I might not graduate. What do I do?

It’s my senior year and the school that I transferred to won’t allow me graduate with any D’s on my transcripts even though they accepted at the beginning of the year knowing I had these grades. I only have 3 D’s and when I finish this school year, I’ll have all of the credits I need to go to a 4 year so that’s not an issue. The principal tried to let me take online classes the first semester but there were so many issues that I couldn’t pass any of it. Now the year’s almost over and i have no idea what to do. Should I just finish out this school year and go to another school to get my diploma? Cause as it stands I don’t really have any other options.

Can you try these classes online again? If you take the three classes over the summer, can you graduate? You must to retake the classes you got D’s in.
(Most schools won’t accept D’s).

Can you take a GED?

Arrange with your high school to graduate late - either after the summer or after the fall semester. It will probably take you less time to do that than to prepare fore and pass the GED exams.