Prefabs are not being detected by a trigger?

I am trying to detect when a Prefab collides with a trigger I have made. However, it never detects it. It will detect the player and other objects, but never the player. Currently, I have this code.

void OnTriggerEnter2D(Collider2D col)
    {
        Debug.Log("else");
        if(col.gameObject.layer == 8){
            Debug.Log("8");
        }
    }

Making the object kinematic seemed to fix it for some reason.

A Prefab is nothing to do with physics. It’s simply a template of a GameObject hierarchy you can clone and add to the scene.

In physics, whether something contacts is dependent upon the Rigidbody2D types and the Collision Layer Matrix. No idea what body-types you were trying to contact before but Static vs Static never contact.