• Resolved joroabv

    (@joroabv)


    I’m getting this :
    Permalink: ***\wp-content\plugins\acf-extended\includes\modules\ui-user.php on line 167
    https://***/author/”>
    Warning: Attempt to read property “ID” on null in ***\wp-content\plugins\acf-extended\includes\modules\ui-user.php on line 167

    on the backend edit user profile page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am seeing the same.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    Yes, WP devs removed a global variable on the user profile page since the WP 6.0 version. This warning will be fixed in the upcoming patch. In the meantime, you can fix it by yourself following these instructions:

    In the file /acf-extended/includes/modules/ui-user.php line:163:

    Replace

    global $profileuser;
    

    With

    global $user_id;
    

    And in the same file, line:167:

    Replace

    <strong>Permalink:</strong> <a href="<?php echo get_author_posts_url($profileuser->ID); ?>"><?php echo get_author_posts_url($profileuser->ID); ?></a>
    

    With:

    <strong>Permalink:</strong> <a href="<?php echo get_author_posts_url($user_id); ?>"><?php echo get_author_posts_url($user_id); ?></a>
    

    Sorry for the inconvenience.

    Have a nice day!

    Regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting an error on user profile page’ is closed to new replies.