Use getSupportFragmentManager(), or change the import for FragmentManager from what you have (android.support.v4.app.FragmentManager) to android.app.FragmentManager.
You need to consistently use either the native classes or the backport. You cannot mix and match.