Tracking down: Session cannot be started after headers have already been sent

Likely, I’m missing the obvious. I am trying to track down what controller is causing these errors:

[error][yii\web\Session::open] session_start():
Session cannot be started after headers have already been sent

Unfortunately, I am not getting a stack trace which makes this trickier. Session management is mostly handled by our base controller, but we don’t explicitly use session_start() there. And, where we do save data in our session, it’s pretty much all in our beforeAction().

Any help is appreciated in how to debug this.

Closing “?>” present but not the very last characters in the file?