S2 shutting down when checking SD card

I changed the charging port for my S2 few days ago.
Now it keeps shutting itself down when it starts to prepare SD card.
Could it be because my phone is rooted and I don't have the SD card anymore?
I haven't yet tried to do anything as I thought you guys would know a little more about this weird problem.

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?