Collider stopped working

I just got started with Unity recently and im making a 2D game

I have a player and some barriers set up to stop him from exiting game area. At first everything was working perfectly but then i had a small error with my pc and might have ended up pressing some buttons. Now the player just passes through the barrier everytime…

Player collider is not triggered
Barrier collider is triggered

Player also passes through any new game object I add no matter what i do so i guess i did something with the player but what?

Any suggestions greatly appreciated

Is the player moving too fast? Or is there any jittery movement when the objects collide?

Hello,

Check that your player collider is not in trigger mode.
Check in your rigidbody that your collision detection is not in discrete, it might not be a sufficient detection for your application.
Check that you player movement is made with rigidbody physics instead of transform.