I just removed a very old and broken florescent lighting fixture and was hoping to replace it with a flush LED fixture. This is what I found after I removed the old lighting:
As you can see, the hole landed right on a floor joist at an intersection. I am fairly new to electrical work and have not encountered a fixture without an electrical box. What is the recommend way of handling this? Should I put a box on the side of the joist and then find an alternate way of mounting the light?
EDIT:
Just wanted to share the solution I used given below as the correct answer. A shallow pan box. Not sure if this is ceiling fan safe or not, but I am just putting up a light, so I think this will work good. 4 holes were provided, but I believe just to make it easier to hit the joist. I would have used all 4 for extra weight, but hit a nail.