• Resolved cjnaylor

    (@cjnaylor)


    Uploading a profile photo fails because the plugin never stops processing the photo. Specifically…

    (1) I click “upload photo”. I get the dialog box prompting me to drag in a photo. I drag in my photo. The photo loads in the box. I crop it then click upload. The dialog box now says “Processing….” That’s all that happens. I’ve waited 10 minutes and nothing changes. If I click outside the dialog box the dialog box disappears as if I clicked “Cancel”. The profile photo has not changed.

    (2) The javascript console show no errors.

    (3) The user’s folder on in the wp-content/ultimatemember/… contains an image called “profile_photo_temp_meta.jpg”. This is the image I tried uploading.

    (4) The hosting service (WPEngine) logs show no errors.

    (5) In the SQL database, for the user, there is a new meta key called “profile_photo_temp_meta” with data about the file that was uploaded.

    So the profile photo file is being uploaded to the host as a temp file, but for some reason it is never “processed”.

    I have not tried turning off plugins yet to see if there is a conflict. UM has worked for years on our site so I don’t know what’s different now. UM is the current version.

    Thanks for your help!

    • This topic was modified 11 months ago by cjnaylor.
Viewing 15 replies - 1 through 15 (of 17 total)
  • missveronica

    (@missveronicatv)

    @cjnaylor

    Try to look at your browser Ajax network responses from admin-ajax.php
    in each step during your upload and the message if not successful.

    https://imgur.com/a/yH0ByvH

    Thread Starter cjnaylor

    (@cjnaylor)

    Hey @missveronicatv

    That’s a great tip! I looked at the Ajax network responses and found this: the first admin-ajax.php response was successful but the second was a failure:

    {“success”:false,”data”:”Invalid form type”}

    So more clues! What does it mean, though?

    missveronica

    (@missveronicatv)

    @cjnaylor

    Are you using the UM Extended plugin for Profile Photo upload from Registration and Account page?

    Thread Starter cjnaylor

    (@cjnaylor)

    @missveronicatv

    Nope, just the one Ultimate Member plugin. Have been using it for years now. Updated religiously. Worked in the past.

    • This reply was modified 11 months ago by cjnaylor.
    missveronica

    (@missveronicatv)

    @cjnaylor

    Do you have profile.php template customizations?
    Check with UM Settings -> Advanced -> Override templates

    https://docs.ultimatemember.com/article/1847-fixing-outdated-ultimate-member-templates

    Thread Starter cjnaylor

    (@cjnaylor)

    @missveronicatv

    I don’t have a UM Settings -> Advanced -> Override templates.

    Under Advanced, all I have are “General”, “Features”, “Security”, “Developers”

    I am running Version 2.10.5

    I went through all the tabs and subtabs and there is no “Override templates”

    missveronica

    (@missveronicatv)

    @cjnaylor

    You don’t have any custom templates.

    Try to enable PHP error logging.

    https://docs.ultimatemember.com/article/1751-enable-debug-logging

    You will probably get a PHP log file with notices and errors in this file:
    .../wp-content/debug.log

    Post the content of this file here in the Forum.
    You can remove any text with your domain info.

    For best formatting use the Forum’s CODE format.

    Thread Starter cjnaylor

    (@cjnaylor)

    @missveronicatv

    I do have custom templates, old ones, ancient ones. But no template override option appears.

    I will try php error logging and report back.

    • This reply was modified 11 months ago by cjnaylor.
    missveronica

    (@missveronicatv)

    @cjnaylor

    What file names do the old templates have?

    Thread Starter cjnaylor

    (@cjnaylor)

    @missveronicatv

    The old template file name is called “profile-XXXX-custom.php”. It’s located in “[CUSTOM THEME FOLDER]/ultimate-member/templates/”

    Here is a block from debug.log. The block repeats throughout the log, showing every time I tried uploading an new profile picture to no avail:

    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property Avada_Privacy_Embeds::$embed_defaults is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/themes/Avada/includes/class-avada-privacy-embeds.php on line 314
    [22-Jul-2025 16:03:13 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
    fusion-builder domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /nas/content/live/xxxxxxxxxxxxxx/wp-includes/functions.php on line 6121
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionBuilder::$fusion_builder_gutenberg is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-builder.php on line 2021
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionBuilder::$dynamic_data is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-builder.php on line 2023
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_Column::$shortcode_attr_id is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php on line 123
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_Column::$shortcode_classname is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php on line 124
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_Column::$shortcode_name is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php on line 125
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_Column::$content_filter is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php on line 126
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_ColumnInner::$shortcode_attr_id is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php on line 123
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_ColumnInner::$shortcode_classname is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php on line 124
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_ColumnInner::$shortcode_name is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php on line 125
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_ColumnInner::$content_filter is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-column-element.php on line 126
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_RowInner::$shortcode_attr_id is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php on line 39
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_RowInner::$shortcode_classname is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php on line 40
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_RowInner::$shortcode_name is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php on line 41
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_RowInner::$content_filter is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php on line 42
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_Row::$shortcode_attr_id is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php on line 39
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_Row::$shortcode_classname is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php on line 40
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_Row::$shortcode_name is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php on line 41
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property FusionSC_Row::$content_filter is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php on line 42
    [22-Jul-2025 16:03:13 UTC] PHP Deprecated: Creation of dynamic property quick_page_post_reds::$ppr_newwindow is deprecated in /nas/content/live/xxxxxxxxxxxxxx/wp-content/plugins/quick-pagepost-redirect-plugin/page_post_redirect_plugin.php on line 1593

    @cjnaylor

    You have a local language issue and a lot of “PHP Deprecated”
    with the “Fusion Page Builder” plugin last updated 11 months ago.

    Try to deactivate the plugin if possible.

    Thread Starter cjnaylor

    (@cjnaylor)

    @missveronicatv

    I will deactivate the Fusion Page Builder plugin and try again.

    I found the PHP function generating the error:

    public function ajax_resize_image

    contained in ultimate-member/core/class-files.php, with the error being thrown from line 367:

    $post_data = UM()->query()->post_data( $form_id );
    if ( ! array_key_exists( 'mode', $post_data ) || $mode !== $post_data['mode'] ) {
    wp_send_json_error( esc_js( __( 'Invalid form type', 'ultimate-member' ) ) );
    }

    The ajax request payload does not contain a “set_mode” key.

    Thread Starter cjnaylor

    (@cjnaylor)

    @missveronicatv

    I can confirm that the missing “set_mode” key in the ajax payload is the culprit. The variable “$mode” in the function ajax_resize_image is set from the “set_mode” key in the ajax payload. When the key does not exist, $mode is set to Null. $post_data[‘mode’] exists and is set to ‘profile’. So this statement:

    if ( ! array_key_exists( 'mode', $post_data ) || $mode !== $post_data['mode'] ) {

    is true and the error is thrown.

    @cjnaylor

    You can try to use the “WP Rollback” plugin and test with UM 2.10.4

    https://wordpress.org/plugins/wp-rollback/

    Thread Starter cjnaylor

    (@cjnaylor)

    @missveronicatv

    I fixed it!

    The problem was indeed in the ancient custom profile file we are using.

    The default profile file of the current version of UM contains this line:

    <div class="um-form" data-mode="<?php echo esc_attr( $mode ); ?>" data-form_id="<?php echo esc_attr( $form_id ); ?>">

    The corresponding line in our ancient custom profile file was:

    <div class="um-form">

    …and that’s why the mode data was missing. I replaced the old line with the new line and image uploading restored.

    Yeah.

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘Profile Photo Processing Never Ends’ is closed to new replies.