Title: Undefined variable: errorfound
Last modified: February 27, 2023

---

# Undefined variable: errorfound

 *  Resolved [simonvw](https://wordpress.org/support/users/simonvw/)
 * (@simonvw)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-errorfound/)
 * ISSUE:
   PHP Notice: Undefined variable: errorfound in …/wp-ada-compliance-check-
   basic/res/rules/empty_th.php on line 35
 * Causing the update of a post that contains a table with no errors to fail with
   the message “Updating failed. Undefined variable: errorfound”.
 * SOLUTION:
 * Check if `$errorFound`is not empty:
 *     ```wp-block-code
       if (!empty($errorfound) && $errorfound == 1) {
   
           ...
   
       }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [seshelby](https://wordpress.org/support/users/seshelby/)
 * (@seshelby)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-errorfound/#post-16509423)
 * Thank you for taking the timer to report this PHP notice. We will get it resolved
   and report back when the update goes out.
 *  Plugin Author [seshelby](https://wordpress.org/support/users/seshelby/)
 * (@seshelby)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-errorfound/#post-16527586)
 * Thanks again for reporting this issue. It has been resolved in the latest release
   which is now available.
 *  Thread Starter [simonvw](https://wordpress.org/support/users/simonvw/)
 * (@simonvw)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-errorfound/#post-16531110)
 * Thank you for your quick response en fix 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Undefined variable: errorfound’ is closed to new replies.

 * ![](https://ps.w.org/wp-ada-compliance-check-basic/assets/icon-128x128.png?rev
   =2988892)
 * [WP ADA Compliance Check Basic](https://wordpress.org/plugins/wp-ada-compliance-check-basic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ada-compliance-check-basic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ada-compliance-check-basic/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ada-compliance-check-basic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ada-compliance-check-basic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ada-compliance-check-basic/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [simonvw](https://wordpress.org/support/users/simonvw/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-errorfound/#post-16531110)
 * Status: resolved