Skip to:
Content
Pages
Categories
Search
Top
Bottom

“Change Profile Photo” Avatar delete & crop broken on Vanilla install


  • zloro
    Participant

    @zloro

    Hello. Brand new install of WP 5.5.3 and BuddyPress 6.3.0 on a server running MySQL Version
    5.6.32 & PHP Version 7.4.10 with NO OTHER plugins active & running on 2020 template.

    On Page: https://www.rolevant.com/members/rolevantist/profile/change-avatar/

    I can upload the image and am given the option to crop the uploaded image. However, once I select my crop area and I press the crop button the <upload & crop> area disappears & a red box WITH NO MESSAGE appears. Nothing else happens.

    The original files are being uploaded to
    https://rolevant.com/wp-content/uploads/avatars/1/&#8230;

    But no automatically resized or manually cropped images are being saved anywhere.

    Other similar Avatar Crop issues from 8-10 years ago exist on this forum, but nothing that is applicable to these latest versions. Any & all fixes (incompatable javascipt, JQuery, AJAX version incompatibility with JQUERY/AJAx versions called by templates) are just not relevant here. Please Help!!!

Viewing 5 replies - 1 through 5 (of 5 total)

  • zloro
    Participant

    @zloro

    Same issue applies with Group avatar images.


    shanebp
    Moderator

    @shanebp

    Have you checked your debug log?
    And the browser’s javascript console?


    zloro
    Participant

    @zloro

    IN all cases (Delete/Crop for User/Group) javascript console reports:
    jquery.js?ver=1.12.4-wp:4 POST https://xn--i-0i3s.ml/wp-admin/admin-ajax.php 500 (Internal Server Error)
    send @ jquery.js?ver=1.12.4-wp:4
    ajax @ jquery.js?ver=1.12.4-wp:4
    (anonymous) @ wp-util.min.js?ver=5.5.3:2
    Deferred @ jquery.js?ver=1.12.4-wp:2
    send @ wp-util.min.js?ver=5.5.3:2
    post @ wp-util.min.js?ver=5.5.3:2
    setAvatar @ avatar.min.js?ver=6.3.0:1
    cropAvatar @ avatar.min.js?ver=6.3.0:1
    dispatch @ jquery.js?ver=1.12.4-wp:3
    r.handle @ jquery.js?ver=1.12.4-wp:3


    zloro
    Participant

    @zloro

    debug.log contents:
    [22-Nov-2020 08:49:23 UTC] PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit() in wp-content/plugins/buddypress/bp-core/bp-core-avatars.php:760
    Stack trace:
    #0 wp-content/plugins/buddypress/bp-core/bp-core-avatars.php(848): bp_core_delete_existing_avatar(Array)
    #1 wp-includes/class-wp-hook.php(287): bp_avatar_ajax_delete(”)
    #2 wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #3 wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #4 wp-admin/admin-ajax.php(176): do_action(‘wp_ajax_bp_avat…’)
    #5 {main}
    thrown in wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 760
    [22-Nov-2020 09:04:58 UTC] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in wp-includes/formatting.php on line 4130
    [22-Nov-2020 09:04:58 UTC] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in wp-includes/load.php on line 1210
    [22-Nov-2020 09:05:06 UTC] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in wp-includes/formatting.php on line 4130
    [22-Nov-2020 09:05:06 UTC] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in wp-includes/load.php on line 1210
    [22-Nov-2020 09:05:41 UTC] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in wp-includes/formatting.php on line 4130
    [22-Nov-2020 09:05:41 UTC] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in wp-includes/load.php on line 1210
    [22-Nov-2020 09:05:44 UTC] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in wp-includes/formatting.php on line 4130
    [22-Nov-2020 09:05:44 UTC] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in wp-includes/load.php on line 1210
    [22-Nov-2020 09:17:09 UTC] PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit() in wp-content/plugins/buddypress/bp-core/bp-core-avatars.php:760
    Stack trace:
    #0 wp-content/plugins/buddypress/bp-core/classes/class-bp-attachment-avatar.php(261): bp_core_delete_existing_avatar(Array)
    #1 wp-content/plugins/buddypress/bp-core/bp-core-avatars.php(1234): BP_Attachment_Avatar->crop(Array)
    #2 wp-content/plugins/buddypress/bp-core/bp-core-avatars.php(1345): bp_core_avatar_handle_crop(Array)
    #3 wp-includes/class-wp-hook.php(287): bp_avatar_ajax_set(”)
    #4 wp-includes/class-wp-hook.php(311): WP_Hook->a in wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 760


    zloro
    Participant

    @zloro

    Thank you for directing my focus to the logs. I can tell they have to do with server configuration issues. I’ll follow up with my hosting co tomorrow. Ill post back with solution. TY!

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