My computed field has PHP code that is apparently causing an error. Diagnosing is tricky since the only feedback I get is whether the computed field gets updated. Please provide some way for site admins to see PHP error codes.

Note: This request does not extend to non-admin users. I don't want to leak error information.

Comments

deekayen’s picture

Status: Active » Closed (won't fix)

I'm pretty sure this is impossible. You'll just have to test your code elsewhere somehow before you have CF parse it. From php.net:

"In case of a fatal error in the evaluated code, the whole script exits."

While the normal way to gracefully catch errors in PHP5 with try {} works on most things, it doesn't on eval().