• Resolved jnpuckett

    (@jnpuckett)


    I want to first thank you for your assistance on my previous issue – it was indeed an issue with edited permissions on the Teacher role and has now been resolved.

    I am experiencing another issue where my pdf certificates will not generate when I upgrade the Certificates add-on to 2.1.0. They work perfectly in 2.0.7, but I get the following error when attempting to view the certificates after updating the plugin:

    `Warning: strtoupper() expects parameter 1 to be string, array given in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php on line 1151

    Warning: Cannot modify header information – headers already sent by (output started at /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php:1151) in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates-tfpdf.php on line 42

    Warning: Cannot modify header information – headers already sent by (output started at /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php:1151) in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates-tfpdf.php on line 43

    Warning: Cannot modify header information – headers already sent by (output started at /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php:1151) in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates-tfpdf.php on line 44

    Warning: Cannot modify header information – headers already sent by (output started at /home/mydomain/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php:1151) in /home/mydomain/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates-tfpdf.php on line 45
    %PDF-1.4 3 0 obj <> /Contents 4 0 R>> endobj 4 0 obj <> stream x

    Any suggestions on how to resolve?

    Thank you!

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

    My apologies for the delay in responding!

    If this is still an issue for you, I can’t duplicate it on my test site. I wonder if there’s some plugin/theme conflict with the newer code in 2.1.0 that doesn’t exist in 2.0.7.

    Please make sure that Sensei and addons are up to date.

    Next, try disabling all of your plugins except Sensei LMS (and extensions). Then try testing again to see if the issue persists. If that resolves your issue, you can find what was causing it by enabling each plugin one by one while continuing to test.

    If that doesn’t help, you can also try switching to the Twenty Twenty theme via Appearance > Themes, and test again. If the issue is resolved then you know it’s a problem with the theme, and you’ll need to contact the theme author for further assistance.

    Let us know how it goes.

    Best,

    Hi,

    Since it’s been some time since we’ve had a reply from you, I will close this thread. Please feel free to open a new thread if we can help with anything else!

    Best,
    Cena

    Thread Starter jnpuckett

    (@jnpuckett)

    Hello,
    I just wanted to follow up now that I’ve finally figured out the culprit – maybe this will help someone else. It seemed to be stemming from a font setting in the certificate template merge fields. After lots of trial and error, I discovered that if I make the {{course_title}} field bold that the certificate generates without issue. If I change that to regular (not bold) suddenly I get that weird error again. Not sure why this happened but I’m just glad it’s working!

    Thread Starter jnpuckett

    (@jnpuckett)

    For reference, here are my field settings. When I checked the ‘Bold’ arrow on the course_title, it started working. https://ibb.co/m6Y6zBD

    Thread Starter jnpuckett

    (@jnpuckett)

    Hi again,
    I’ve done more testing and it seems that if NONE of the checkboxes in a text field (bold/italic/center align/border) are selected the error occurs. If at least one of these is selected the pdf renders correctly. Thanks and have a good day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Certificate Issues on version 2.1.0’ is closed to new replies.