Title: Some errors
Last modified: February 27, 2020

---

# Some errors

 *  Resolved [leemon](https://wordpress.org/support/users/leemon/)
 * (@leemon)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/some-errors-21/)
 * I’m getting the following errors when the constant `WP_DEBUG` is set to `true`:
 *     ```
       27-Feb-2020 08:29:50 UTC] PHP Notice:  Undefined variable: wpdb in /www/wp-content/plugins/lava-directory-manager/includes/class-core.php on line 692
       [27-Feb-2020 08:29:50 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_var() on null in /www/wp-content/plugins/lava-directory-manager/includes/class-core.php:692
       ```
   
 * You should add `global $wpdb;` at the top of the `lava_auto_generator_callback()`
   function in the `class-core.php` file.
 * Also, I’m getting another error:
 * `[27-Feb-2020 08:33:31 UTC] PHP Notice: Undefined variable: is_remove in /www/
   wp-content/plugins/lava-directory-manager/includes/class-core.php on line 802`
 * There are two mentions to a `$is_remove` var in function `rewriteListing()` in
   the `class-core.php` file that should be changed to `$isRemove`.

Viewing 1 replies (of 1 total)

 *  Plugin Author [lavacode](https://wordpress.org/support/users/lavacode/)
 * (@lavacode)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/some-errors-21/#post-12637916)
 * Solved by the update.
 * Please contact us via email to assist quickly.
 * Thank you,
    Joe

Viewing 1 replies (of 1 total)

The topic ‘Some errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lava-directory-manager.svg)
 * [Lava Directory Manager](https://wordpress.org/plugins/lava-directory-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lava-directory-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lava-directory-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/lava-directory-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lava-directory-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lava-directory-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [lavacode](https://wordpress.org/support/users/lavacode/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/some-errors-21/#post-12637916)
 * Status: resolved