It very likely is, yes. However without looking at your server error logs, you wont know what 'it' is, unfortunatetely. You can of course use recovery mode which will allow you to disable everything, but that will not tell you specifically which item was causing your issue.
I feel you may be misunderstanding this part. You create a file named constants.php, and add that text. So you are not looking for a file here.