• Resolved jpegtobbe

    (@jpegtobbe)


    It seams that when editing a course and set None in the Certificate Template field on a course and hit save, and then reload the edit course page it reverts to the old value.

    But if you edit a course that doesnt have a template selected yet and select one and hit save and reload, it works..

    So it doesnt work if you want to remove a certificate template on a course.

    Doesnt work in PHP 8.0
    Do work in PHP 7.4

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @jpegtobbe,

    Thanks for reporting the issue. I would like to replicate it on a test website. For this can you tell me which version of the Sensei LMS plugin and WordPress is installed on your website?

    Sensei LMS version 4.13.0 was released a few days ago, try updating the plugin installed on your website to the latest version and let us know if that fixes this issue.

    Best,

    Thread Starter jpegtobbe

    (@jpegtobbe)

    Running latest version 4.13.0.1.13.0
    WP 6.2

    • This reply was modified 1 year, 7 months ago by jpegtobbe.

    Hi @jpegtobbe!

    I tried checking this on both PHP 7.4 and 8.0 versions, and it’s working fine on my end. On an Edit Course page, I have something else selected as Certificate Template. When I select “None”, save the page, and reload it, the Certificate Template option is still set to “None”.

    Could you please check these troubleshootings steps?

    • Temporarily deactivate all plugins except Sensei and Sensei LMS Certificates to see if there’s a plugin conflict. If the issue is resolved with all other plugins deactivated, you can reactivate plugins one by one to discover which plugin is causing the problem.
    • Clear your browser cache and cookies
    • Try a different browser
    • Check the PHP error logs on your web host server for any relevant errors. If you’re not sure how to check those logs, your web host can help you with that.
    • Check for JavaScript errors. If you’re not sure how to do that, you can follow this guide: https://www.ads-software.com/support/article/using-your-browser-to-diagnose-javascript-errors/#step-3-diagnosis

    Let us know how it goes. Thank you1

    Thread Starter jpegtobbe

    (@jpegtobbe)

    I have tried to only have Sensei and Sensei LSM Certificates active.. and no childtheme active (just the Storefront theme).

    I cant see anything more than these warnings in the error_log:

    PHP Warning: Attempt to read property “display_name” on bool in C:\Laragon\www\Webbkurshlr\wp-content\plugins\sensei-certificates\classes\class-woothemes-sensei-certificates.php on line 596
    PHP Warning: Attempt to read property “user_login” on bool in C:\Laragon\www\Webbkurshlr\wp-content\plugins\sensei-certificates\classes\class-woothemes-sensei-certificates.php on line 596

    Cant see any XHR-call that displays any errors in the browser. Have tried incognito mode.

    The same happens on two different hosts, my local win-dev and a standard linux dev env.

    Got to be some logic error in your code that not trigger a php fault.

    Here you can see a video of what i see: https://www.dropbox.com/s/pgyi38ouwptjiug/Kurser%20%E2%80%B9%20Webbkurs-HLR%20%E2%80%94%20WordPress%20%E2%80%94%20Firefox%20Developer%20Edition%202023-04-11%2016-07-07.mp4?dl=0

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hello there, @jpegtobbe,

    thanks for sharing all this useful information! I have reported the problem to our developers on GitHub:

    https://github.com/Automattic/sensei/issues/6813

    The link is public, so you’re welcome to subscribe to follow its developments, and to add any other useful information to help us fix the issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Set None on Certificate Template on course doesnt work on PHP 8’ is closed to new replies.