Viewing 15 replies - 1 through 15 (of 37 total)
  • Thread Starter ajtatum

    (@ajtatum)

    Oh, this is from the edit profile form. I haven’t tried the other forms.

    Thread Starter ajtatum

    (@ajtatum)

    Any idea?

    @ajtatum

    I don’t see any errors in the event log, just warnings but I can’t tell if they’re from your plugin or not.

    Can you post the PHP warnings here in the support forum and use the “CODE” formatting?

    Thread Starter ajtatum

    (@ajtatum)

    I don’t know if it’s related to your plugin or not, but this comes up consistently when I try to upload an image.

    Deprecated: Accessing static trait property MatthiasWeb\RealMediaLibrary\Vendor\MatthiasWeb\Utils\Localization::$PACKAGE_INFO_BACKEND is deprecated, it should only be accessed on a class using the trait

    There’s nothing that specifically points to Ultimate Member as the source, but, like I mentioned, I can upload the same image anywhere on the backend without any problems… but on the user profile page (frontend), it uploads the file, but doesn’t actually save adjust the size/save it. I can see it in the folder as a temp file…

    @ajtatum

    Do you have the “Real Media Library” plugin installed?

    Try to update the UM Profile image with the “Real Media Library” plugin deactivated.

    Thread Starter ajtatum

    (@ajtatum)

    Tried deactivating that plugin along with:

    • Code Snippets
    • Enable Media Replace
    • Flying Images
    • ImageMagick Engine
    • Perfmatters
    • Real Media Library
    • Real Physical Media
    • Regenerate Thumbnails Advanced
    • Simple Local Avatars
    • WP Rocket
    • Autoptimize

    And tried uploading a photo and it still reaches 100% but never does anything beyond that.

    It makes a succesful call to admin-adjax.php and returns the following response:

    {
    	"success": true,
    	"data": [
    		{
    			"file": "profile_photo_temp.png",
    			"url": "https:\/\/ajtatumdigital.com\/wp-content\/uploads\/ultimatemember\/1\/\/profile_photo_temp.png",
    			"type": "image\/png",
    			"file_info": {
    				"basename": "profile_photo_temp.png",
    				"name": "https:\/\/ajtatumdigital.com\/wp-content\/uploads\/ultimatemember\/1\/\/profile_photo_temp.png",
    				"original_name": "AJ Tatum Profile Gradient 512.png",
    				"ext": "png",
    				"type": "image\/png",
    				"size": 322971,
    				"size_format": "315 KB"
    			}
    		}
    	]
    }

    There are no errors in Chrome Dev Tools and nothing is picked up by Sentry.

    I’m using Kadence theme if it makes a difference. I’ve tried other member plugins and haven’t had any issues, but yours fits what I’m looking for… and everything works great except for this last piece.

    @ajtatum

    Replace also your “Kadence” theme with a default WP theme like the “Twenty Twenty-Two” theme.

    Thread Starter ajtatum

    (@ajtatum)

    Ok, so tried that and still didn’t work so I reached out to my host and they found some permission issues with the plugin folder. So, now I’m getting to the stage where the file uploads and I can see the image, but after “Accepting” or “Applying” it… it doesn’t do anything. I tried for the profile picture and cover photo and neither will work. However, this time it’s generating PHP error logs. This is what I’m seeing:

    [21-Jul-2022 05:35:32 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, string given in /home/{username}/public_html/wp-content/plugins/ultimate-member/includes/core/class-form.php on line 649

    @ajtatum

    What version of PHP are you using?

    Is it possible for you to turn back to PHP 7.4
    until this bug been fixed by UM Developers?

    Thread Starter ajtatum

    (@ajtatum)

    I was running 8.1 when I installed the plugin, but while debugging I switched to 7.4 and didn’t revert back. I doubled checked my hosting config and .htacccess file, and it’s running 7.4 and still produces the same error.

    @ajtatum

    You can look at UM Settings -> Install Info, where you have most important settings.

    Thread Starter ajtatum

    (@ajtatum)

    I appreciate your help with this! Here is some info:

    --- Web Server Configurations ---
    
    PHP Version:              			7.4.27
    MySQL Version:            			10.3.32
    Web Server Info:          			Apache
    
    --- PHP Configurations ---
    
    PHP Memory Limit:         			2048M
    PHP Upload Max Size:      			128M
    PHP Post Max Size:        			128M
    PHP Upload Max Filesize:  			128M
    PHP Time Limit:           			600
    PHP Max Input Vars:       			100000
    PHP Arg Separator:        			&
    PHP Allow URL File Open:  			Yes
    
    --- Web Server Extensions/Modules ---
    
    DISPLAY ERRORS:           			N/A
    FSOCKOPEN:                			Your server supports fsockopen.
    cURL:                     			Your server supports cURL.
    SOAP Client:              			Your server has the SOAP Client enabled.
    SUHOSIN:                  			Your server does not have SUHOSIN installed.
    GD Library:               			PHP GD library is installed on your web server.
    Mail:                     			PHP mail function exist on your web server.
    Exif:				          PHP Exif library is installed on your web server.
    
    --- Session Configurations ---
    
    Session:                  			Disabled
    Session Name:             			PHPSESSID
    Cookie Path:              			/
    Save Path:                			/opt/alt/php74/var/lib/php/session
    Use Cookies:              			On
    Use Only Cookies:         			On

    @ajtatum

    You can update the UM core PHP script wp-content/plugins/ultimate-member/includes/core/class-form.php on line 649:

    From:
    if ( array_key_exists( 'match', $f ) && array_key_exists( 'advanced', $f ) && 'social' === $f['advanced'] ) {

    To:
    if ( is_array( $f ) && array_key_exists( 'match', $f ) && array_key_exists( 'advanced', $f ) && 'social' === $f['advanced'] ) {

    Where the addition is: is_array( $f ) &&
    Use a FTP client or cPanel filemanager to do the update.

    This is a fix for your warning in the PHP error log.

    • This reply was modified 2 years, 4 months ago by missveronica.
    • This reply was modified 2 years, 4 months ago by missveronica.
    Thread Starter ajtatum

    (@ajtatum)

    So… there aren’t any errors, but the images still don’t update. I tried turning on WP_DEBUG to see if I’d get anything… and it’s like it’s not even doing anything after I upload the image and click “Apply”.

    @ajtatum

    Do you have the PHP extension “ImageMagick” installed and active on your site?

Viewing 15 replies - 1 through 15 (of 37 total)
  • The topic ‘Profile and Cover Photo uploads, but stalls afterwards’ is closed to new replies.