EP Display Users
Error due to empty value (3 posts)

  1. Christian Kramer
    Posted 2 years ago #


    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?



  2. cjashley
    Posted 1 year ago #

    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.

  3. cjashley
    Posted 1 year ago #

    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 :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic