Duplicate PDF Certificate generated

Home Forums Legacy Support 4.0 Bugs & Issues Duplicate PDF Certificate generated

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #313931
    squallhajime
    Spectator
    Dear support, Whenever a student complete the course and get a certificate or admin assign the certificate to student, it is always creating TWO the same certificates PDF in media. 1 https://i.ibb.co/R9sy54h/1.jpg 2 https://i.ibb.co/f8N1r01/2.jpg All WPLMS plugins are up to date. The WPLMS PDF Certificates plugin is v2.0. Please advise how to fix this.
    #314159
    Veronica
    Moderator
    ok checking on my local setup
    #314160
    Veronica
    Moderator
    just created a certificate template and it is showing single as it should: http://prntscr.com/uo82ju
    #314256
    squallhajime
    Spectator
    can u help to fix it, not sure y it kept creating 2 the same certificate.
    #314258
    squallhajime
    Spectator
    This reply has been marked as private.
    #314309
    MrVibe
    Keymaster
    Checking... It might be possible that in your user flow the certificate generation hook is running twice.
    #314310
    MrVibe
    Keymaster
    I checked the user flow is correct and the certificate generation should happen only once. Trying to replicate the issue in your site.
    #314319
    squallhajime
    Spectator
    Thanks for looking into it. it is still creating 2 copies. Hope it can be solved.
    #314337
    squallhajime
    Spectator
    Dear Support, it is still not solved. Please look into it
    #314879
    Veronica
    Moderator
    This reply has been marked as private.
    #314995
    squallhajime
    Spectator
    Well, I am not sure why you mentioned you did not find them, whereas the PDF certificates are shown clearly in your screenshot. 1a https://i.ibb.co/rZ5CX8R/1a.jpg It is so obvious that WPLMS is creating 2 of the same PDF certificates each time. You can go ahead and try assigning the certificate to student, WPLMS will always create 2 of the same PDF certificates. This issue happened also when student completed the course and attained the certificate. Why is WPLMS creating 2 same PDF certificates every time?
    #315204
    Veronica
    Moderator
    hi, try to add this in customizer plugin
    add_action('wplms_certificate_earned',function(){
        $init = Wplms_Pdf_Certificates_Init::init();
        if(!empty($init->certificated_ran)){ 
            remove_action('wplms_certificate_earned',array($init,'certificate_earned'),999,3);
            return;
        }
        $init->certificated_ran = 1;
    });
    #315679
    squallhajime
    Spectator
    Hello support, i have added the above to the customizer plugin. It still has the same issue. Please help
    #316132
    Veronica
    Moderator
    hi, hi, your theme is on version 4 but the plugins are on version 3 site is not configured properly the theme version is version4! http://prntscr.com/utjcdc and plugins are not on version4! http://prntscr.com/utjcpq please complete the setup first http://prntscr.com/utjcxd this is the main part to activate version 4 for that, you need to disable the plugins as shown in the notice and activate the plugins which are necessary for version 4 that is vibebp and wplms plugin no more need to activate the plugins which are shown in the notice please check this if installing fresh wplms4:https://www.youtube.com/watch?v=KTT2a-L3F8o if you are updating the theme then follow: https://www.youtube.com/watch?v=Q_x-HOMItL8 please make sure that you have followed the tip properly NOTE: we never suggest any user go for such a big update on the running site with live users if you don't want to use version 4 then you can degrade version 4 to version 3
    #316218
    squallhajime
    Spectator
    What do you mean? Yes i would like to stick with WPLMS Legacy. I was told that version 4 theme is working for version 3 plugins. Well i have another site on latest 4 version theme, and it is working well with the version 3 plugins (WPLMS Legacy). It does not have the duplicate pdf certificate issue.
Viewing 15 posts - 1 through 15 (of 16 total)
  • The topic ‘Duplicate PDF Certificate generated’ is closed to new replies.