1

Hi it seems to be trivial question but it is the one I can not find an answer of. I am tweaking a wp site developed by somebody. They have used custom errors and they are getting errors by get_error_code(); but there is no place I could find where they have actually saved the errors. I want to customise the errors so is there a database table where the errors are saved in the wordpress database. Kindly advise thanks.

1
  • Do you mean WP_Error objects, or do you mean PHP errors in general?
    – Tom J Nowell
    Commented Sep 6, 2016 at 7:14

1 Answer 1

1

WP_Error kind of errors are a poor substitution for exception (something that php 4 didn't have IIRC), they are not actual software errors, and are not being kept in any log if the developer do not write code for it.

2
  • you mean they are self generated and there is no way I can check and modify the error messages on html form submission.
    – Zeeshan
    Commented Sep 6, 2016 at 6:44
  • what does it mean "self generated"? @Zeeshan Commented Sep 6, 2016 at 7:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.