• Resolved leavai

    (@lparga)


    Hi there, I have a critical error on my website. When I install the latest version of the plugin (is there a new update or the latest version is from 8 months ago?) blank screen is displayed in my all entire website. If I install the previous version of the plugin, the site works fine but when I need to view a certificate, this error is displayed

    PHP Fatal error: Uncaught RuntimeException: Can’t open file /home/c1890651/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/../font/unifont/AdegaBold.ttf in /home/c1890651/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/TTFontFile.php:61

    I’m not using the font AdegaBold on the certificate (actually I’m using Helvetica).

    Could you help me?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey @lparga – Sensei LMS Certificates (version 2.3.0 – last updated 8 months ago) is the latest version.

    The plugin is working fine for me! Could you please confirm if you have the Sensei LMS plugin (Version 4.11.2) installed?

    If not, could you please try to update the Sensei LMS plugin? Also, which WordPress and PHP versions are you using?

    If you have the latest version of the Sensei LMS plugin installed, then as a next step, please log in to your site via FTP or SFTP or cPanel > File Manager and go to the wp-content/plugins/ folder and delete the folder named sensei-certificates.

    • If you are not sure how to log in to the site via FTP or SFTP or cPanel > File Manager, I would recommend approaching your hosting provider and they will help you log in.

    Once done, log in to WordPress Admin, and reinstall the Sensei LMS Certificates plugin from WordPress Admin > Plugins > Add New.

    Thread Starter leavai

    (@lparga)

    Hi Animesh, thanks for your reply.

    I try step by step your recomendations but the error persists.

    I updated Sensei LMS to the latest version (4.11.2) and reinstall the sensei certificates plugin. When I want to see a certificate, this message is displayed.

    Warning: stat(): stat failed for /home/c1890651/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/../font/unifont/AdegaBold.ttf in /home/c1890651/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php on line 1042

    Fatal error: Uncaught RuntimeException: Can’t open file /home/c1890651/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/../font/unifont/AdegaBold.ttf in /home/c1890651/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/TTFontFile.php:61 Stack trace: #0 /home/c1890651/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/PDF.php(1053): tFPDF\TTFontFile->getMetrics(‘/home/c1890651/…’) #1 /home/c1890651/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-pdf-certificate.php(141): tFPDF\PDF->AddFont(‘adegabold’, ”, ‘AdegaBold.ttf’, true) #2 /home/c1890651/public_html/wp-content/plugins/sensei-certificates/classes/class-woothemes-sensei-certificates.php(762): WooThemes_Sensei_PDF_Certificate->generate_pdf() #3 /home/c1890651/public_html/wp-includes/class-wp-hook.php(308): WooThemes_Sensei_Certificates->download_certificate(”) #4 /home/c1890651/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /home/c1890651/pub in /home/c1890651/public_html/wp-content/plugins/sensei-certificates/lib/tfpdf/tFPDF/TTFontFile.php on line 61

    The PHP version is 7.4

    Hi @lparga,

    Judging by the error trace, it looks like you are using a custom font applied by the sensei_certificates_custom_font code hook.?

    Did you try to change the certificate template fonts?

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi there, @lparga,

    Do you have any updates on that? We usually close any non-actoive threads after one week, so we want to make sure you’re all set before marking it as solved. Thanks!

    Thread Starter leavai

    (@lparga)

    Hi! the only font configured is Helvetica. I changed this font but the error persists. Is there a new update?

    Hi @lparga ,

    Would you try the following:

    • set up a staging site. Many hosts provide a staging service, where you can do testing without affecting the live site. You can ask your host about this. If they don’t give you a staging site, you could try WP Staging or Duplicator.
    • test for conflicts.

    How to test for conflicts

    The best way to determine if the issue is being caused by a theme and/or plugin is to:

    1. Temporarily switch your theme to Storefront or Twenty Twenty-Three theme.
    2. Try to reproduce the problem:?If the problem is resolved, it’s a theme conflict and you’ll need to contact the theme developer. If not, continue to the next steps.
    3. Temporarily deactivate all plugins except Sensei and Sensei Certificates. You can do this manually or use a plugin to help (see below for tools).
    4. Try to reproduce the problem again. If the problem is resolved, it’s a plugin conflict. To figure out which plugin is causing the problem, continue to the next step.
    5. Reactivate your other plugins one by one, testing after each, until you find the one causing conflict. 

    For more detailed instructions, check out How to test for plugin and theme conflicts

    Tools to help with troubleshooting

    Meks Quick Plugin Disabler will remember what plugins you had active when you switch it back on.

    Need Help Conflict Testing?
    Performing a conflict test can be a time-consuming, technical challenge. If you’d like someone else to do this work for you, our trusted partner, Codeable, has an offering where they will run this test for $150 USD. If there is time left, they will also fix the problems they found.

    Let us know what you find, and we’ll go from there.

    Best,

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hello @lparga,

    Do you have updates about that? We usually close inactive threads after one week of no movement, but we want to make sure we’re all set before marking it as solved. Thanks!

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi there, @erania-pinnera,

    It’s been one week since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Fatal Error’ is closed to new replies.