• hello
    Thanks for your fantastic plugin.

    I use WordPress 6.7.2.
    After installation, I access a page and I click on the “pdf” icon but I have this error, do you know why?

    Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /Users/brahim/Local Sites/test/app/public/wp-content/plugins/pdf-print/mpdf/classes/ttfontsuni.php:613 Stack trace: #0 /Users/brahim/Local Sites/test/app/public/wp-content/plugins/pdf-print/mpdf/classes/ttfontsuni.php(202): TTFontFile->extractInfo(false, true, 255) #1 /Users/brahim/Local Sites/test/app/public/wp-content/plugins/pdf-print/mpdf/mpdf.php(3880): TTFontFile->getMetrics(‘/Users/brahim/L…’, ‘dejavusansmono’, 0, false, true, 255) #2 /Users/brahim/Local Sites/test/app/public/wp-content/plugins/pdf-print/mpdf/mpdf.php(4246): mPDF->AddFont(‘dejavusansmono’, ”) #3 /Users/brahim/Local Sites/test/app/public/wp-content/plugins/pdf-print/mpdf/mpdf.php(13624): mPDF->SetFont(‘dejavusansmono’) #4 /Users/brahim/Local Sites/test/app/public/wp-content/plugins/pdf-print/mpdf/mpdf.php(1287): mPDF->SetDefaultFont(‘dejavusansmono’) #5 /Users/brahim/Local Sites/test/app/public/wp-content/plugins/pdf-print/pdf-print.php(1391): mPDF->__construct(”, ‘A4’, 11.0, ‘dejavusansmono’, 15, 15, 16, 16) #6 /Users/brahim/Local Sites/test/app/public/wp-includes/class-wp-hook.php(324): pdfprnt_print(Object(WP)) #7 /Users/brahim/Local Sites/test/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #8 /Users/brahim/Local Sites/test/app/public/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #9 /Users/brahim/Local Sites/test/app/public/wp-includes/class-wp.php(830): do_action_ref_array(‘wp’, Array) #10 /Users/brahim/Local Sites/test/app/public/wp-includes/functions.php(1336): WP->main(”) #11 /Users/brahim/Local Sites/test/app/public/wp-blog-header.php(16): wp() #12 /Users/brahim/Local Sites/test/app/public/index.php(17): require(‘/Users/brahim/L…’) #13 {main} thrown in /Users/brahim/Local Sites/test/app/public/wp-content/plugins/pdf-print/mpdf/classes/ttfontsuni.php on line 613

    THANKS

    • This topic was modified 1 week, 5 days ago by brahimvim.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same error:
    Uncaught Error: count(): Argument #1 ($value) must be of type Countable|array, string given
    in?/home/yyyyyyyy/public_html/wp/wp-content/plugins/pdf-print/mpdf/classes/ttfontsuni.php?on line?613

    Plugin Support andrewsupport

    (@andrewsupport)

    Hi,

    Please ckick the “Load Fonts” button on the plugin settings page. After that check the work of the PDF button again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.