Title: [Plugin: Developer&#039;s Custom Fields] PHP &#8211; property_exists() function throws errors
Last modified: August 20, 2016

---

# [Plugin: Developer's Custom Fields] PHP – property_exists() function throws errors

 *  [thewebwing](https://wordpress.org/support/users/thewebwing/)
 * (@thewebwing)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-php-property_exists-function-throws-errors/)
 * When adding a new post to a custom post type, some of the developer custom fields
   I had defined were throwing errors (note, I have wp_debug set to true). I traced
   the error and found that when adding a new post, i.e. it does not have an ID 
   yet, property_exists($post, ‘ID’) coughs up the following error.
 * `Warning: First parameter must either be an object or the name of an existing
   class in *domain*/wp-content/plugins/developers-custom-fields/slt-cf-init.php
   on line 455`
 * I changed the property_exists function to isset($post->ID) and it seems to be
   solved. I don’t know if this is better, worse, or a wash, but I have stopped 
   the errors.
 * Edited to add: This is located in the slt-cf-init.php file.
 * [http://wordpress.org/extend/plugins/developers-custom-fields/](http://wordpress.org/extend/plugins/developers-custom-fields/)

The topic ‘[Plugin: Developer's Custom Fields] PHP – property_exists() function 
throws errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/developers-custom-fields.svg)
 * [Developer's Custom Fields](https://wordpress.org/plugins/developers-custom-fields/)
 * [Support Threads](https://wordpress.org/support/plugin/developers-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/developers-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/developers-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/developers-custom-fields/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [thewebwing](https://wordpress.org/support/users/thewebwing/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-developers-custom-fields-php-property_exists-function-throws-errors/)
 * Status: not resolved