Home › Forums › Legacy Support › 4.0 Bugs & Issues › Duplicate PDF Certificate generated
- This topic has 15 replies, 4 voices, and was last updated 3 years, 7 months ago by Anshuman Sahu.
-
AuthorPosts
-
September 25, 2020 at 11:41 am #313931squallhajimeSpectatorDear 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. https://i.ibb.co/R9sy54h/1.jpg 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.September 26, 2020 at 10:14 am #314159VeronicaModeratorok checking on my local setupSeptember 26, 2020 at 10:34 am #314160VeronicaModeratorjust created a certificate template and it is showing single as it should: http://prntscr.com/uo82juSeptember 26, 2020 at 2:55 pm #314256squallhajimeSpectatorcan u help to fix it, not sure y it kept creating 2 the same certificate.September 26, 2020 at 2:58 pm #314258squallhajimeSpectatorThis reply has been marked as private.September 27, 2020 at 2:49 am #314309MrVibeKeymasterChecking... It might be possible that in your user flow the certificate generation hook is running twice.September 27, 2020 at 3:39 am #314310MrVibeKeymasterI checked the user flow is correct and the certificate generation should happen only once. Trying to replicate the issue in your site.September 27, 2020 at 7:15 am #314319squallhajimeSpectatorThanks for looking into it. it is still creating 2 copies. Hope it can be solved.September 27, 2020 at 3:51 pm #314337squallhajimeSpectatorDear Support, it is still not solved. Please look into itSeptember 29, 2020 at 1:54 pm #314879VeronicaModeratorThis reply has been marked as private.September 30, 2020 at 2:44 am #314995squallhajimeSpectatorWell, I am not sure why you mentioned you did not find them, whereas the PDF certificates are shown clearly in your screenshot. 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?September 30, 2020 at 2:52 pm #315204VeronicaModeratorhi, 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; });
October 3, 2020 at 4:27 am #315679squallhajimeSpectatorHello support, i have added the above to the customizer plugin. It still has the same issue. Please helpOctober 5, 2020 at 3:10 pm #316132VeronicaModeratorhi, 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 3October 6, 2020 at 2:22 am #316218squallhajimeSpectatorWhat 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. -
AuthorPosts
- The topic ‘Duplicate PDF Certificate generated’ is closed to new replies.