Forums

Error handling - Redirect to maintenance page if php error is detected (2 posts)

  1. wilcosky
    Member
    Posted 1 year ago #

    Hello,

    I've been researching this for a couple days now with no luck. Does anyone know how I could make my WordPress site redirect to a maintenance page if a php scripting error is detected?

  2. wilcosky
    Member
    Posted 1 year ago #

    Okay, it turns out what I was trying to do isn't possible. I was wanting to redirect if a syntax error is detected and two different people on two different forums told me that syntax errors are not catchable by an user error handler. In other words, you can't use php's error handler to redirect on a syntax error.

    So, problem solved, it's not possible. Moving on... :)

Topic Closed

This topic has been closed to new replies.

About this Topic