A simple fix is to go into your StarMade folder then into the blueprints folder.
Inside the blueprints folder go into the data folder and rename the file \"awdawdawJibberishawdwaa.0.0.0.smd2\" to whatever your ship is named.
For example if my ship is named BFG_4 I would rename the file to, \"ENTITY_SHIP_BFG_4.0.0.0.smd2\"
Now that\'s done;
Go into your \"ATTACHED_0\" and then DATA and read the file name.
If it reads, \"ATTACHED_0.0.0.0.smd2\" you\'re good.
If it reads a bunch of jibbersh then rename it.
Do this for all the following ATTACHED_# folders.
Chances are if 3 out of 9 turrets are missing from your ship, 3 out of 9 are misnamed.
This should work almost 99% of the time.
P.S. I just applied this fix to one of my ships to double check and it worked perfectly for me.