• Resolved Amanda Giles

    (@shedonist)


    I’m running your plugin on WP 3.9.2 and it’s running great with 1 exception.

    When I go to my users screen, I see the following 2 errors for each user:
    `Notice: Undefined offset: 0 in wp-content/plugins/wordpress-social-login/includes/services/wsl.user.data.php on line 218
    Notice: Trying to get property of non-object in wp-content/plugins/wordpress-social-login/includes/services/wsl.user.data.php on line 218`

    I peeked into the code, and if you update line 218 from this:
    return $rs[0]->meta_value;

    To this:
    return (empty($rs) ? '' : $rs[0]->meta_value);

    The problem is fixed by this change. I’m putting this ticket here to help other folks who might be getting the same error.

    Maybe you can include this in the next release?

    https://www.ads-software.com/plugins/wordpress-social-login/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"Undefined offset" and "Trying to get property of non-object" Errors’ is closed to new replies.