I have a site that has an absolutely positioned navigation bar that sits at the top of the window, so that when I scroll down the page, the rest of the content goes underneath it.
The site is currently in its "testing" phase and there is the occasional php error that appears on the page. Unfortunately, it appears at the top of the code and is therefore showing at the top of the window which is visually covered by the absolutely positioned navigation bar. I myself could use the inspector to hide the navigation bar to see what the error message reads that is underneath the nav bar, but the other users I have testing the site do not know how to do that.
I would like to wrap the php errors that are output in custom html tags which I can then give a higher z-index to so it appears above the navigation bar. Then, the users can report to me what the exact php error is that is displayed to them.
How can I wrap my php errors in html tags?