Picture not show in correctly

Home Forums Legacy Support Support queries How-to & Troubleshooting Picture not show in correctly

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #387092
    nadzhatulothman
    Participant
    Please help to check why it show picture like this
    #387136
    Veronica
    Moderator
    hi the title of the issue is not specific can you please share more details
    #387168
    nadzhatulothman
    Participant
    This reply has been marked as private.
    #387209
    Veronica
    Moderator
    hi you need to set the profile picture for the specific user as the user's profile picture is broken that's why it is showing user name there
    #387283
    nadzhatulothman
    Participant
    I have done set many time but after refresh still same.
    #387330
    Veronica
    Moderator
    hi first you need to upload the profile picture and then clear the cache after that close the page after that open the page then perform the drag to refresh the page
    #387466
    nadzhatulothman
    Participant
    Hi Veronica. I have done perform the step but still same
    #387467
    nadzhatulothman
    Participant
    This reply has been marked as private.
    #387491
    Anshuman Sahu
    Keymaster
    Yes the issue is replicated .To solve please add this custom code in your wplms-customizer.php file in wplms customizer plugin :
    add_action('wp_footer',function(){
        ?>
        <script>
            window.addEventListener('DOMContentLoaded', (event) => {
                if(typeof localforage!=='undefined'){
                    localforage.iterate(function(value, key, iterationNumber) {
                        if(key.includes('user_') || key.includes('member_')){
                            localforage.removeItem(key);
                        }
                    }).then(function() {
                        console.log('Iteration has completed');
                    }).catch(function(err) {
                        // This code runs if there were any errors
                        console.log(err);
                    });
                }
            });
            
        </script>
        <?php
    },9999999);
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Picture not show in correctly’ is closed to new replies.