CSS not displaying correctly
-
Hi there!
I saw there was an auto update on the plugin on friday, the plugin then was down completely over the weekend, think this was mostly because of a custom font I’ve integrated.
Fatal error: Uncaught Mpdf\MpdfException: Cannot find TTF TrueType font file "Roboto-Regular.ttf" in configured font directories. in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php:33 Stack trace: #0 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(3889): Mpdf\Fonts\FontFileFinder->findFontFile() #1 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(4184): Mpdf\Mpdf->AddFont() #2 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(18323): Mpdf\Mpdf->SetFont() #3 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Tag/BlockTag.php(386): Mpdf\Mpdf->setCSS() #4 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Tag.php(240): Mpdf\Tag\BlockTag->open() #5 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(13921): Mpdf\Tag->OpenTag() #6 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/includes/dkpdf-functions.php(199): Mpdf\Mpdf->WriteHTML() #7 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/class-wp-hook.php(324): dkpdf_output_pdf() #8 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #9 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/plugin.php(565): WP_Hook->do_action() #10 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/class-wp.php(830): do_action_ref_array() #11 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/functions.php(1336): WP->main() #12 /var/www/vhosts/mythenforum.ch/httpdocs/wp-blog-header.php(16): wp() #13 /var/www/vhosts/mythenforum.ch/httpdocs/index.php(17): require('...') #14 {main} thrown in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php on line 33
When I copy the Roboto ttfs in the folder, it starts to work again, but the css seems not to work properly (font is not displayed and some other elements not in the right position).
In the PDF, the following errors are also being displayed:
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 91
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 94
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 97
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 100
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 103
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 106
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 109Also, I’ve found there Errors in the debug log:
[07-Oct-2024 06:29:20 UTC] PHP Deprecated: Creation of dynamic property DKPDF::$admin is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/dk-pdf.php on line 75
[07-Oct-2024 06:34:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php on line 16140
[07-Oct-2024 06:34:27 UTC] PHP Warning: Undefined array key "bgcolorarray" in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php on line 18613Thank you for your help!
Jonas
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.