Title: PHP and WP errors when wp_debug used
Last modified: January 18, 2017

---

# PHP and WP errors when wp_debug used

 *  [garethgillman](https://wordpress.org/support/users/garethgillman/)
 * (@garethgillman)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-and-wp-errors-when-wp_debug-used/)
 * Using latest version of plugin, installed the plugin on my dev enviroment and
   my screen has numerous php errors which you might want to look into. This is 
   with WP_debug turned on.
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; BL_Search_Filter_Widget has a deprecated constructor
   in /wp-content/plugins/bepro-listings/admin/bepro_listings_widgets.php on line
   19
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; BL_Map_Widget has a deprecated constructor in /wp-
   content/plugins/bepro-listings/admin/bepro_listings_widgets.php on line 57
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; BL_Recent_Listings_Widget has a deprecated constructor
   in /wp-content/plugins/bepro-listings/admin/bepro_listings_widgets.php on line
   98
 * Notice: has_cap was called with an argument that is deprecated since version 
   2.0.0! Usage of user levels by plugins and themes is deprecated. Use roles and
   capabilities instead.
 * if i go to bepro listings > options > page/post, the template type dropdown has:
 * Notice: Undefined index: page_template in /wp-content/plugins/bepro-listings/
   admin/bepro_listings_admin.php on line 1731
 * Show comments has:
 * Notice: Undefined index: show_comments in /wp-content/plugins/bepro-listings/
   admin/bepro_listings_admin.php on line 1745
 * In Map for map api key:
 * <br /><b>Notice</b>: Undefined index: map_user_api in <b>/wp-content/plugins/
   bepro-listings/admin/bepro_listings_admin.php</b> on line <b>1769</b><br />
 * When I go to add listing I get:
 * under listing details:
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 79
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 80
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 81
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 82
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 83
 * under geographic details I get:
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 96
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 97
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 98
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 99
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 100
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 101
 * Notice: Trying to get property of non-object in /wp-content/plugins/bepro-listings/
   admin/meta/gallery_meta.php on line 102
 * All of the above are from install, no settings changed, not many will people 
   will have debug on so won’t see these.
 * Regards

Viewing 1 replies (of 1 total)

 *  Anonymous User 13724992
 * (@anonymized-13724992)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-and-wp-errors-when-wp_debug-used/#post-8678264)
 * Hi,
 * Thanks for trying our plugin and alerting us to the php warnings. Our developers
   are working on this. We will update this post as we make progress.

Viewing 1 replies (of 1 total)

The topic ‘PHP and WP errors when wp_debug used’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bepro-listings.svg)
 * [BePro Listings](https://wordpress.org/plugins/bepro-listings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bepro-listings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bepro-listings/)
 * [Active Topics](https://wordpress.org/support/plugin/bepro-listings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bepro-listings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bepro-listings/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User 13724992
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php-and-wp-errors-when-wp_debug-used/#post-8678264)
 * Status: not resolved