How to stop the code from completing the redirect if a PHP notice error happens? When working on Ubuntu local LAMP for development some notice errors are missed! But those same errors on the live server stops the header redirects.
What I am trying to do is catch those errors on the the local development server before they show up on the live server. How can I accomplish this? - headers already sent))?
Notice Errors: