• I’m currently finishing getting everything working on localhost, and it detects the image from wp_user_avatar perfectly. But on the production site when updating wp_user_avatar, this feature does not detect the image by default. Can you help me? Has this happened to you before? On localhost it automatically creates the record: basic_user_avatar when browsing the different users and authors, but not on production. Should I unblock some kind of script?
    thanks

    • This topic was modified 3 weeks, 1 day ago by domar.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter domar

    (@domar)

    On the development site it adds these records(basic_user_avatar) when browsing in bd user_meta, that allows the image to be displayed correctly. In production that does not happen.

    • This reply was modified 3 weeks, 1 day ago by domar. Reason: explain the problem
    Thread Starter domar

    (@domar)

    I think I found the solution, for wordpress sites installed with cpanel, this line does not work:

    $wp_user_avatar_id = get_user_meta( $user_id, $wpdb->get_blog_prefix() . 'user_avatar', true );

    Replacing the direct table name("wp_user_avatar") has started detecting images.

    $wp_user_avatar_id = get_user_meta( $user_id, 'wp_user_avatar', true );

    can you test with others installations.

    Regards and thanks.

    Darío

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.