Trying to hook up a new celling fan but wires don't seem right
Hello, A few days ago I took down an old celling fan to find the older one was not put up right. It only was screwed to a block of wood so I removed that and put up a bar and box supported on the beams of the house. Anyway that was my first problem that I ran into the next one was the wiring . I noticed that the old fan was wired in a odd way. From the roof copper(ground) went to white in the fan. Black from the roof went to blue in the fan. White from the roof went to black in the fan.
I noticed the new fan(that has no blue) works with white to ground and white to black and black to green but is it safe? I have done fans in the past and have always just matched up the colors . The new fan won't work if I put black to black white to white and ground to ground. I don't get what's wrong.
The guy who put the fans up did two bedrooms at once so I'm thinking the other one is wired the same. I took the light switches out and I don't see anything wrong.
Please help. I really want to get this fan up and working but don't know where to start. I'm short on money and don't want to hire some one if I don't have to .
Thank you!!