Support » Fixing WordPress » Error handling – Redirect to maintenance page if php error is detected

  • 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?

Viewing 1 replies (of 1 total)
  • Thread Starter wilcosky

    (@wilcosky)

    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… 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Error handling – Redirect to maintenance page if php error is detected’ is closed to new replies.