WordPress.org

Support

Support » Plugins and Hacks » Error due to empty value

Error due to empty value

  • Christian Kramer

    @christiankramer

    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.