Colliders not working

I’m currently developing 3D game in Unity for my school project. But the problem is the colliders I put in the objects are not working. The character should not be able to walk through the objects but he is still able to.

I’ve done every possible way I know to solve this problem but it’s still not working.

If memory serves me correctly, one of the 2 objects colliding has to have a rigidbody attached.