• I have added social icons to the profile page.

    And when the user is editing the profile, there are boxes to ad links to Linkedin and Facebook, just as intended.

    But when the profile is displayed…only the Linkedin icon is there.
    In fact, the Facebook link isn′t even saved in the profile editor when the user edit.

    What do I do?

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

Viewing 15 replies - 16 through 30 (of 32 total)
  • @olahall

    Your last post is not from my last code snippet.

    Thread Starter olahall

    (@olahall)

    Sorry! Had to clear chache…

    Field: facebook
    [title] => Facebook
    [metakey] => facebook
    [type] => url
    [label] => Facebook
    [required] => 0
    [public] => 1
    [editable] => 1
    [url_target] => _blank
    [url_rel] => nofollow
    [icon] => um-faicon-facebook
    [validate] => facebook_url
    [url_text] => Facebook
    [advanced] => social
    [color] => #3B5999
    [match] => https://facebook.com/

    Field: linkedin
    [title] => LinkedIn
    [metakey] => linkedin
    [type] => url
    [label] => LinkedIn
    [required] => 0
    [public] => 1
    [editable] => 1
    [url_target] => _blank
    [url_rel] => nofollow
    [icon] => um-faicon-linkedin
    [validate] => linkedin_url
    [url_text] => LinkedIn
    [advanced] => social
    [color] => #0976b4
    [match] => https://linkedin.com/

    facebook 42
    linkedin 43

    @olahall

    OK this looks OK now.

    Next can you post your UM Settings -> Install info

    Thread Starter olahall

    (@olahall)

    Ok…

    ### Begin Install Info ###
    
    ## Please include this information when posting support requests ##
    
    --- Site Info ---
    
    Site URL:					https://smartutbildning.se
    Home URL:					https://smartutbildning.se
    Multisite:					No
    
    --- Hosting Provider ---
    
    Host:						DBH: 127.0.0.1, SRV: smartutbildning.se
    
    --- User Browser ---
    
    Platform:                 Windows 
    Browser Name:             Chrome  
    Browser Version:          104.0.0.0 
    User Agent String:        Mozilla/5.0 (Windows NT 10.0; Wi 
    			  n64; x64) AppleWebKit/537.36 (KH
                              TML, like Gecko) Chrome/104.0.0.
                              0 Safari/537.36
                              
    ---- Current User Details --
    
    Role: administrator, ap-grund, mi-konferensen, fit, implegrering-kampanj
    
    --- WordPress Configurations ---
    
    Version:						6.0.1
    Language:					sv_SE
    Permalink Structure:			/%postname%/
    Active Theme:				Twenty Fourteen 3.4-wpcom
    Page On Front:				Start (#11328)
    Page For Posts:				 (#0)
    ABSPATH:					/wordpress/core/6.0.1/
    All Posts/Pages:				366
    WP Remote Post:           		wp_remote_post() works
    WP_DEBUG:                 			Disabled
    WP Table Prefix:          			Length: 3, Status: Acceptable
    Memory Limit:   				512MB
    
    --- UM Configurations ---
    
    Version:						2.5.0
    Upgraded From:            		2.5.0
    Current URL Method:			
    Cache User Profile:			Yes
    Generate Slugs on Directories:	Yes
    Force UTF-8 Encoding: 		No
    JS/CSS Compression: 			No
    Port Forwarding in URL: 		No
    Exclude CSS/JS on Home: 		No
    
    --- UM Pages Configuration ---
    
    User:						https://smartutbildning.se/user/
    Account:						https://smartutbildning.se/account/
    Members:					https://smartutbildning.se/members/
    Register:						https://smartutbildning.se/register/
    Login:						https://smartutbildning.se/login/
    Logout:						https://smartutbildning.se/logout/
    Password Reset:				https://smartutbildning.se/password-reset/
    
    --- UM Users Configuration ---
    
    Default New User Role: 		medlem
    Profile Permalink Base:		user_login
    User Display Name:			full_name
    Force Name to Uppercase:		No
    Redirect author to profile: 		Yes
    Enable Members Directory:	Yes
    Use Gravatars: 				No
    Require a strong password: 	Off
    
    --- UM Access Configuration ---
    
    Panic Key: 								
    Global Site Access:						Site accessible to Everyone
    Backend Login Screen for Guests:			No
    Redirect to alternative login page:			
    Backend Register Screen for Guests:		No
    Redirect to alternative register page:		
    Access Control widget for Admins only: 		No
    Enable the Reset Password Limit:			Yes
    Reset Password Limit: 3Disable Reset Password Limit for Admins: No
    Blacklist Words: 							6
    
    --- UM Email Configurations ---
    
    Mail appears from:  			SMART Utbildningscentrum
    Mail appears from address:  	[email protected]
    Use HTML for E-mails:   		Yes
    Account Welcome Email:  		No
    Account Activation Email:   	Yes
    Pending Review Email:   		No
    Account Approved Email: 		No
    Account Rejected Email: 		No
    Account Deactivated Email:  	Yes
    Account Deleted Email:  		Yes
    Password Reset Email:   		Yes
    Password Changed Email: 		Yes
    
    --- UM Total Users ---
    
    				All Users(312)
    administrator(3)
    editor(1)
    author(2)
    mi-utbildning_grund(1)
    mi-utbildning_frdjupning(2)
    mi-utbildning_pfyllnadsdag(1)
    lnsstyrelsen_skne(58)
    medlem(309)
    p-manual(4)
    mi-hlsosamtal(14)
    um_ap-gaming(7)
    mi-del1(45)
    mi-del2(46)
    ap-grund(128)
    ap-pabyggnad(16)
    ls-mi-pafyllnad(19)
    kommunikationbemtande_vardsamt1(7)
    mi-konferensen(33)
    ap-grund-zoom(1)
    fit(2)
    implegrering-kampanj(6)
    none(0)
    
    --- UM Roles ---
    
    				Administrator (administrator)
    Editor (editor)
    Author (author)
    Contributor (contributor)
    Subscriber (subscriber)
    Kursdeltagare (um_kursdeltagare)
    Contest Gallery User (contest_gallery_user)
    ?P-utbildning (p-utbildning)
    MI-utbildning, grund (mi-utbildning_grund)
    MI-utbildning, f?rdjupning (mi-utbildning_frdjupning)
    MI-utbildning, p?fyllnadsdag (mi-utbildning_pfyllnadsdag)
    L?nsstyrelsen Sk?ne (lnsstyrelsen_skne)
    Medlem (medlem)
    KBT-utbildning (kbt-utbildning)
    MI-f?rel?sning (mi-frelsning)
    Customer (customer)
    Shop manager (shop_manager)
    Eldsj?lar, 2021 (eldsjlar_2021)
    ?P-manual (p-manual)
    P?g?ende ?P-utbildning (um_pagaende-ap-utbildning)
    P?g?ende ?P-utb (pgende_p-utb)
    MI-h?lsosamtal (mi-hlsosamtal)
    ?P-gaming (um_ap-gaming)
    MI-del1 (mi-del1)
    MI-del2 (mi-del2)
    MI-utb-online (mi-utb-online)
    AP-grund (ap-grund)
    AP-grund-utbildning (ap-grund-utbildning)
    AP-grundutb-online (ap-grundutb-online)
    MI-konf-online (mi-konf-online)
    AP-Pabyggnad (ap-pabyggnad)
    AP-Pabygg-online (ap-pabygg-online)
    LS-MI-Pafyllnad (ls-mi-pafyllnad)
    LS-MI-fortbild (ls-mi-fortbild)
    Kommunikation&bem?tande (VardSamt1) (kommunikationbemtande_vardsamt1)
    VardSamt (del 1 och 2) (vardsamt_del_1_och_2)
    SEO Manager (wpseo_manager)
    SEO Editor (wpseo_editor)
    Online (p?g?ende utb) (online_pgende_utb)
    MI-konferensen (mi-konferensen)
    Projektledare (um_projektledare)
    AP-grund-zoom (ap-grund-zoom)
    MI-konferensen (MINT) (mi-konferensen_mint)
    P?g?ende-konferens (pgende-konferens)
    FIT (fit)
    Implegrering-kampanj (implegrering-kampanj)
    
    --- UM Custom Templates ---
    
    				N/A
    
    --- UM Email HTML Templates ---
    
    				N/A
    
    --- Web Server Configurations ---
    
    PHP Version:              			7.4.30
    MySQL Version:            			5.5.5
    Web Server Info:          			nginx
    
    --- PHP Configurations ---
    
    PHP Memory Limit:         			512M
    PHP Upload Max Size:      			2047M
    PHP Post Max Size:        			2047M
    PHP Upload Max Filesize:  			2047M
    PHP Time Limit:           			1200
    PHP Max Input Vars:       			6144
    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:                			/tmp
    Use Cookies:              			On
    Use Only Cookies:         			On
    
    --- WordPress Active Plugins ---
    
    				Akismet Anti-Spam: 5.0
    AutomatorWP: 2.2.7
    Better Messages: 1.9.10.65
    Classic Editor: 1.6.2
    Classic Widgets: 0.3
    Code Snippets: 3.2.0
    Display Categories Widget: 3.1
    Duplicate Page: 4.4.9
    Dynamic Visibility for Elementor: 5.0.1
    E2Pdf: 1.17.25
    Elementor: 3.7.3
    Elementor Header & Footer Builder: 1.6.13
    Elementor Pro: 3.7.4
    Essential Addons for Elementor: 5.2.4
    Folders: 2.8.4
    Forminator: 1.17.2
    GTranslate: 2.9.12
    Gutenberg: 13.9.0
    Health Check & Troubleshooting: 1.4.5
    Hustle: 7.5.0
    Image Widget: 4.4.8
    Import and export users and customers: 1.20
    Jetpack: 11.3-a.11
    MailPoet 3 (New): 3.95.1
    MailPoet 3 Premium (New): 3.95.0
    Manage Notification E-mails: 1.8.2
    Members: 3.2.1
    Nextend Social Login: 3.1.5
    Payment Plugins for Stripe WooCommerce: 3.3.26
    PublishPress Future: 2.7.7
    Quiz And Survey Master: 8.0.3
    Redirect Redirection: 1.0.9
    Scheduled Post Trigger: 3.0
    Shortcode to display post and user data: 1.2.0
    Simple Custom CSS: 4.0.5
    Smart Custom Display Name: 5.0.0
    SVG Flags: 0.9.6
    Temporary Login Without Password: 1.7.5
    Ultimate Member: 2.5.0
    Ultimate Member - reCAPTCHA: 2.3.1
    Uncanny Automator: 4.4.0.1
    Widget Visibility Time Scheduler: 5.3.13
    WooCommerce: 6.8.2
    WooCommerce Custom Add To Cart Button: 1.1.3
    WooCommerce PayPal Payments: 1.9.2
    WooCommerce Shipping & Tax: 1.26.3
    Woo Swish e-commerce: 3.5.3
    WordPress.com Editing Toolkit: 3.40658
    WordPress Editorial Calendar: 3.7.12
    Wp-testing: 0.21.19
    WP Event Solution: 3.3.2
    WP Login and Logout Redirect: 1.1
    WP to Buffer: 3.8.2
    Yoast SEO: 19.6
    
    ### End Install Info ###

    @olahall

    I suspect that this is a caching issue.

    You can try this code snippet where there is a second attempt to get the Facebook social URL when the first attempt is failing:

    add_filter( "um_profile_facebook_empty__filter", "um_profile_facebook_empty__filter_custom", 10, 1 );
    
    function um_profile_facebook_empty__filter_custom( $false ) {
    
        $false = UM()->user()->profile['facebook'];	
        return $false;
    }
    • This reply was modified 2 years, 3 months ago by missveronica.
    Thread Starter olahall

    (@olahall)

    I′m not following…

    Should I run this code only once?

    I have tried running it once…and also having it activated all the time.

    It does nothing.

    The page looks the same.

    Field: facebook
    [title] => Facebook
    [metakey] => facebook
    [type] => url
    [label] => Facebook
    [required] => 0
    [public] => 1
    [editable] => 1
    [url_target] => _blank
    [url_rel] => nofollow
    [icon] => um-faicon-facebook
    [validate] => facebook_url
    [url_text] => Facebook
    [advanced] => social
    [color] => #3B5999
    [match] => https://facebook.com/
    
    Field: linkedin
    [title] => LinkedIn
    [metakey] => linkedin
    [type] => url
    [label] => LinkedIn
    [required] => 0
    [public] => 1
    [editable] => 1
    [url_target] => _blank
    [url_rel] => nofollow
    [icon] => um-faicon-linkedin
    [validate] => linkedin_url
    [url_text] => LinkedIn
    [advanced] => social
    [color] => #0976b4
    [match] => https://linkedin.com/
    
    facebook 42
    linkedin 43

    @olahall

    No, this code snippet will try to get the Facebook link for your Profile page.
    Install code snippet for running in frontend all time and test your UM Profile if you get the Facebook Icon at your Social fields.

    If not I will modify the code snippet to get the Facebook link via another coding solution.

    Thread Starter olahall

    (@olahall)

    Ok, well this is what it looks like on frontend…

    https://smartutbildning.se/user/olahall

    …still no icon visible

    @olahall

    OK, remove the last code snippet and use this code snippet instead:

    add_filter( "um_profile_facebook_empty__filter", "um_profile_facebook_empty__filter_custom", 10, 1 );
    
    function um_profile_facebook_empty__filter_custom( $false ) {
    
        $user_id = um_profile_id();
        if( $user_id ) {
    	    um_fetch_user( $user_id );
    	    $false = UM()->user()->profile['facebook'];	
        }
        return $false;
    }
    Thread Starter olahall

    (@olahall)

    Nope, nothing

    @olahall

    Try this code snippet instead:

    add_filter( "um_profile_facebook_empty__filter", "um_profile_facebook_empty__filter_custom", 10, 1 );
    
    function um_profile_facebook_empty__filter_custom( $false ) {
    
        $user_id = um_profile_id();
        if( $user_id ) {
    	    um_fetch_user( $user_id );
    	    $false = um_user( 'facebook' );	
        }
        return $false;
    }
    Thread Starter olahall

    (@olahall)

    That causes a fatal error on the website…so the site crashes

    @olahall

    Remove the code snippet.
    Did you get any info where it crashed?

    Thread Starter olahall

    (@olahall)

    502 Bad Gateway
    Invalid response received from upstream server.

    Website owner? Try again in a few seconds or contact support.

    Thread Starter olahall

    (@olahall)

    Still no solution to this issue?

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘Social Icons not visible’ is closed to new replies.