• Resolved geniuscapri

    (@geniuscapri)


    Hi,
    My client using “wp-members” with “wp-members-user-list”. They update site with all plugins and suddenly they get Deprecated function error. and i changed wpmem_chk_qstr() to add_query_arg() as you can see in code below. Deprecated function error is fixed. but users list is not showing profile link correctly. profile link showing 404 ERROR page.

    User List Page: http://www.waterpointe1.com/directory/
    User Profile Link: http://www.waterpointe1.com/directory/uid=107

    $h2 = ( $fields['profile_page'] ) ? '<a href="' . add_query_arg( $fields['profile_page'] ) . 'uid=' . $user_info->ID . '">' . $h2 . '</a>' : $h2;

    Please help as soon as possible.
    Thanks,
    Khurram

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    If you’re getting this error in one of the plugin’s extensions, that would indicate that the extension is severely out of date as wpmem_chk_qstr() has been deprecated for a very long time.

    The problem with your change is you’re not using add_query_arg() correctly. It should be used as follows:

    add_query_arg( 'key', 'value', 'http://example.com' );

    So in this case:

    add_query_arg( 'uid', $user_info->ID, $fields['profile_page'] );

    Also, for future reference, if the issue is with a plugin extension, that really should be asked through the premium support site and not here as the User List extension is not a ww.wp.xz.cn plugin.

Viewing 1 replies (of 1 total)

The topic ‘wp-members-user-list Help’ is closed to new replies.