Title: Error due to empty value
Last modified: August 21, 2016

---

# Error due to empty value

 *  [Christian](https://wordpress.org/support/users/christiankramer/)
 * (@christiankramer)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/error-due-to-empty-value/)
 * Hi,
 * I see the following error in my page with the short code [ep_display_users username
   =”$[username]” order=”$order” visible=”$visible”] (username is inserted):
 * Warning: Creating default object from empty value in /home/www/wordpress/wp-content/
   plugins/ep-display-users/ep-display-users.php on line 69
 * But every field in the profile is filled with content. What can it be?
 * Cheers,
    Chris
 * [http://wordpress.org/plugins/ep-display-users/](http://wordpress.org/plugins/ep-display-users/)

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

 *  [cjashley](https://wordpress.org/support/users/cjashley/)
 * (@cjashley)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-due-to-empty-value/#post-4125996)
 * I’m getting the same ‘Creating default object from empty value’ error, but it
   was only after I migrated my wordpress site.
 * Although I get the error the plugin goes onto display User name, email, and even
   the photo, which makes me wonder what is being “defaulted”.
 * I tried creating a user called ‘mystery man’ but that blew the el-display-user
   plugin up completely.
 *  [cjashley](https://wordpress.org/support/users/cjashley/)
 * (@cjashley)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-due-to-empty-value/#post-4125997)
 * Fixed the problem by adding the code below to both the functions epdu_get_user
   and epdu_get_users found in the el-display-users.php file.
 * `if (!isset($userobj)) $userobj = new stdClass();`
 * Which prevents the PHP 5.4 warning from appearing 🙂

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

The topic ‘Error due to empty value’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ep-display-users.svg)
 * [EP Display Users](https://wordpress.org/plugins/ep-display-users/)
 * [Support Threads](https://wordpress.org/support/plugin/ep-display-users/)
 * [Active Topics](https://wordpress.org/support/plugin/ep-display-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ep-display-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ep-display-users/reviews/)

## Tags

 * [empty](https://wordpress.org/support/topic-tag/empty/)
 * [field](https://wordpress.org/support/topic-tag/field/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * 2 replies
 * 2 participants
 * Last reply from: [cjashley](https://wordpress.org/support/users/cjashley/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/error-due-to-empty-value/#post-4125997)
 * Status: not resolved