Title: Warning: Undefined variable $found
Last modified: August 15, 2024

---

# Warning: Undefined variable $found

 *  Resolved [Rob Watson](https://wordpress.org/support/users/rcwatson/)
 * (@rcwatson)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-variable-found/)
 * We’re getting
 * `Warning: Undefined variable $found in /home/mytowntr/public_html/wp-content/
   plugins/wpforms-lite/includes/class-db.php on line 830`
 * on the main WP Forms Lite page in the WP dashboard at WPForms > All Forms. It’s
   appearing above each form in the list.
 * ![](https://tinyurl.com/243pdp4q)

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

 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-variable-found/#post-17958320)
 * Hi [@rcwatson](https://wordpress.org/support/users/rcwatson/),
 * Thanks for reaching out!
 * I’m sorry to hear about the warning with your forms.
 * When you have a moment, could you please enable debugging in WordPress and share
   the logs with us? If you need help with this, we have [a guide on how to enable debugging here](https://wpforms.com/developers/how-to-enable-debugging-in-wordpress/).
 * Additionally, please provide the details from **WPForms > Tools > System Info**(
   [screenshot](https://a.supportally.com/i/pYiTDC)).
 * All this information will help us better understand the issue you’re experiencing.
 * If you’d prefer to keep these details private, feel free to contact us through
   our [contact page](https://wpforms.com/contact/) with that information. Just 
   mention that the ticket should be assigned to Ralden Souza. And to make it easier
   for me to locate your ticket, please share the ticket number here.
 * Thanks!
 *  Thread Starter [Rob Watson](https://wordpress.org/support/users/rcwatson/)
 * (@rcwatson)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-variable-found/#post-17958354)
 * Thanks. We don’t have the Pro version, so I submitted it through the alternate
   form on that page as a “Bug” and mentioned your name as requested.
   I turned on
   logging for the plugin and submitted the system info via that form. However, 
   I was unable to turn on `define( 'WP_DEBUG', true );` because the site would 
   crash with the following message:
 * **Fatal error**: Uncaught Error: Call to undefined function wp_kses() in /home/
   mytowntr/public_html/wp-includes/functions.php:6073 Stack trace: #0 /home/mytowntr/
   public_html/wp-includes/functions.php(5799): wp_trigger_error(”, ‘File wp-db.
   php …’, 16384) #1 /home/mytowntr/public_html/wp-includes/wp-db.php(13): _deprecated_file(‘
   wp-db.php’, ‘6.1.0’, ‘wp-includes/cla…’) #2 /home/mytowntr/public_html/wp-content/
   plugins/a2-w3-total-cache/lib/W3/Db.php(11): require_once(‘/home/mytowntr/…’)#
   3 /home/mytowntr/public_html/wp-content/plugins/a2-w3-total-cache/inc/define.
   php(1569): require_once(‘/home/mytowntr/…’) #4 /home/mytowntr/public_html/wp-
   content/db.php(41): w3_require_once(‘/home/mytowntr/…’) #5 /home/mytowntr/public_html/
   wp-includes/load.php(685): require_once(‘/home/mytowntr/…’) #6 /home/mytowntr/
   public_html/wp-settings.php(132): require_wp_db() #7 /home/mytowntr/public_html/
   wp-config.php(127): require_once(‘/home/mytowntr/…’) #8 /home/mytowntr/public_html/
   wp-load.php(50): require_once(‘/home/mytowntr/…’) #9 /home/mytowntr/public_html/
   wp-admin/admin.php(34): require_once(‘/home/mytowntr/…’) #10 {main} thrown in**/
   home/mytowntr/public_html/wp-includes/functions.php** on line **6073**
 * There has been a critical error on this website.
 * [Learn more about troubleshooting WordPress.](https://wordpress.org/documentation/article/faq-troubleshooting/)
 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-variable-found/#post-17961557)
 * Hi [@rcwatson](https://wordpress.org/support/users/rcwatson/),
 * Thank you for sharing the logs!
 * I also noticed your ticket #4382989 and sent you a message there.
 * We appreciate all the details you provided, and I’ll update you as soon as we
   have more information.
 * Thanks!
 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-variable-found/#post-17965109)
 * Hi [@rcwatson](https://wordpress.org/support/users/rcwatson/),
 * I wanted to let you know that I responded to your **ticket #4382989** with details
   about the cause of the issue and a possible solution.
 * Since my response includes specific information from the System Info, I won’t
   share those details here.
 * When you have a chance to try the solution, please reply to my message and let
   me know how it goes.
 * Thanks!
 *  Thread Starter [Rob Watson](https://wordpress.org/support/users/rcwatson/)
 * (@rcwatson)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-variable-found/#post-17965129)
 * Thanks. That seems to have fixed the issue.
 *  Thread Starter [Rob Watson](https://wordpress.org/support/users/rcwatson/)
 * (@rcwatson)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-variable-found/#post-17965130)
 * Closing.
 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-variable-found/#post-17966407)
 * Hi [@rcwatson](https://wordpress.org/support/users/rcwatson/),
 * I’m so glad to hear that the solution we shared helped fix the issue!
 * If you need any more assistance with using WPForms Lite, please don’t hesitate
   to reach out.
 * Thanks!

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

The topic ‘Warning: Undefined variable $found’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/warning-undefined-variable-found/#post-17966407)
 * Status: resolved