• Resolved olafk

    (@olafk)


    Hi,

    We have got the problem, that the profile image upload (in the UM profile tab) gets stuck in the resizing process after uploading an image. It simply hangs, while the button is showing “processing”. Title image upload (without resizing) works fine.
    Unfortunately there is no error message in the browser console or the server logs.

    We have already deactivated all plugins and switched to a standard theme, but it did not help.

    System specs:
    UM: 2.10.0
    WP: 6.7.2:
    PHP: 8.2.27
    Cache: No cache plugins, no server caching, no htaccess caching.

    Is there maybe an option to deactivate the resizing function, because the upload seems to work? Or is it possible to deactivate that via functions.php?

    Any help appreciated! Thank you!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • @olafk

    Try to enable PHP error logging if the debug will give some more info about this issue.

    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.

    • This reply was modified 1 year, 2 months ago by missveronica.
    Thread Starter olafk

    (@olafk)

    @missveronicatv

    Thank you for your reply. I have activated the debug-mode as stated above and went through the upload process again. There are no entries in the debug log, concerning that.

    I also switched to other PHP versions: 8.1.30 / 8.3.17, but resizing-process still hangs.

    @olafk

    Look at your PHP extensions that you have both gd and imagick activated.

    Try the “Site Health” at UM Settings -> System info if you get any “critical issues”

    Thread Starter olafk

    (@olafk)

    @missveronicatv admin-ajax.php is a good hint. It is showing an error during resizing:

    View post on imgur.com

    {“success”:false,”data”:”Ung\u00fcltiger Formulartyp”}

    (invalid type of form). What could that mean?

    @olafk

    UM error message is Invalid form type and in coding

    $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' ) ) );
    }

    Look in the postmeta table where your profile form_id == post_id
    and the value for um_mode should be profile

    Thread Starter olafk

    (@olafk)

    @missveronicatv that solved the problem. Thank you very much. You made my day!

    Short explanation for others with the same problem:

    When you upload a profile/cover image in the profile tab and the upload gets stuck in the resizing process, check admin-ajax.php during upload as shown above, if there is any error message. In case of an error:

    Check your profile template files in the child-theme-folder and update your profile template with the latest UM profile.php file in wp-content/plugins/ultimate-member/templates/profile.php

    That solved my specific problem.

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

The topic ‘Profile image upload gets stuck on resizing process’ is closed to new replies.