elementor is not working

Home Forums Legacy Support 4.0 Bugs & Issues elementor is not working

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #363477
    EduMEE2
    Participant
    after latest update of wplms: elementor stopped working. i am facing this issue in all my 13 wplms sites. 13 wplms site, 13 different hosting plans like aws/ lightsail/ azure/ siteground/ bluehost etc php version is latest 7.4.20 / 8.0 mysql latest version folder permission 755 files permissions 644 deactivated all plugins, still issue is same. updated and downgrade the elementor and it also does not work. --- please identify the issue. none of the resouces are loading only from wp-content/ plugins/ elementor https://share.getcloudapp.com/nOuP1O9m
    #363702
    Veronica
    Moderator
    hi check this: https://docs.wplms.io/pwa#editing-elementor-pages-when-service-worker-is-enabled https://docs.wplms.io/admin-guide-faqs#elementor-and-other-icons-go-missing-when-pwa-enabled
    #363781
    EduMEE2
    Participant
    how many assets i will add? i cant teach everyone to do the same deactivating service work because 200 people use elementor in site. also refer: https://share.getcloudapp.com/JruDe655
    #363987
    Veronica
    Moderator
    means on your site 200 people editing the site with elementor! please confirm
    #364020
    EduMEE2
    Participant
    yes instructors are using to create course units with elementor. its not about just for homepage.
    #364148
    Veronica
    Moderator
    hi yes right we are working on this it can take time till then you need to follow the above method
    #364190
    EduMEE2
    Participant
    thanks.
    #364233
    Veronica
    Moderator
    appreciate your patience
    #364732
    EduMEE2
    Participant
    any update on this?
    #364808
    Veronica
    Moderator
    hi try to add this code in wplms-customizer.php in wplms customizer plugin
    add_Action('wp_footer',function(){
        if(class_exists('\Elementor\Plugin') && \Elementor\Plugin::$instance->editor->is_edit_mode()){
        
            $blog_id = '';
            if(function_exists('get_current_blog_id')){
                $blog_id = get_current_blog_id();
            }
            $service_worker_url = get_rest_url($blog_id,Vibe_BP_API_NAMESPACE);
            ?>
            <script>if ('serviceWorker' in navigator && window.vibebp.api.sw_enabled) {
                    navigator.serviceWorker.getRegistrations().then(registrations => {
                        let check = registrations.findIndex((item)=>{
                            return (item.active.scriptURL == <?php echo $service_worker_url; ?> && item.active.state == 'activated')
                        });
                        if(check > -1){
                            registrations[check].unregister().then(()=>{
                                location.reload()
                            });
                        }
                });
            }
            </script>
            <?php
        }
    });
    #364851
    EduMEE2
    Participant
    if there is service worker enabled only then i need to add this code??
    #364884
    Veronica
    Moderator
    yes
    #364975
    EduMEE2
    Participant
    This reply has been marked as private.
    #365081
    Veronica
    Moderator
    hi well it is not necessary please try above code it will work
    #366587
    EduMEE2
    Participant
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.