What does it mean when my bones hurt for weeks?

Needs exam. Rule out osteomalacia, . Fractures, hypertrophic osteoarthropathy. Xrays and chemistry and inflammation tests will be necessary.
Bones hurt. The most common reason for bones hurting is osteoarthritis or degenerative joint disease. Other symptoms are crucial to determine the cause, such as, swelling and redness of the joints. The possible causes include infection and cancer. Your doctor needs to do an evaluation to exclude other possible treatable causes of bone pain.
Consider Vitamin D. I agree with the other answers, but also consider vitamin d deficiency, which is a very common and treatable condition. Your doc can order an easy blood test to check your level.