Tina Hammar
Forum Replies Created
-
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Looking for PHP7 TestersUnable to get theme stylesheets to load.
Tried to add <link rel=”stylesheet”> manually to <head> in /templates/dkpdf-index.php. It worked with one link but adding two broke styling.Made my own template and changed head to the following – didn’t work.
<head><?php wp_head(); ?></head>Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Looking for PHP7 TestersSVG images are not rendered correctly.
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Looking for PHP7 TestersI have selected the option “Use current theme’s CSS”. It causes the following error.
Themes CSS is also ignored. I am using a bootstrap theme.
De-selecting “Use current theme’s CSS” removes the error.[27-Dec-2017 11:41:13 UTC] PHP Warning: preg_replace(): Compilation failed: regular expression is too large at offset 36048 in /home/bokamark/staging.bokamarknad.se/wp-content/plugins/dk-pdf-1/vendor/mpdf/mpdf/src/CssManager.php on line 246
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Looking for PHP7 TestersChanging line 38 to “$post_type = get_post_type( get_the_ID() );” solves the following error.
[27-Dec-2017 11:41:13 UTC] PHP Notice: Trying to get property of non-object in /home/bokamark/staging.bokamarknad.se/wp-content/plugins/dk-pdf-1/includes/dkpdf-functions.php on line 38
- This reply was modified 7 years, 2 months ago by Tina Hammar.
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Looking for PHP7 TestersIgnore this. reinstalled and error was gone. Unable to delete post.
Multiple errors like this referring to different lines:
Notice: Undefined offset: 5 in /home/bokamark/staging.bokamarknad.se/wp-content/plugins/vendor/mpdf/mpdf/src/Image/Svg.php on line 1727Warning: Division by zero in /home/bokamark/staging.bokamarknad.se/wp-content/plugins/vendor/mpdf/mpdf/src/Image/Svg.php on line 1978
- This reply was modified 7 years, 2 months ago by Tina Hammar.
Forum: Plugins
In reply to: [DK PDF - WordPress PDF Generator] Looking for PHP7 TestersIgnore this. reinstalled and error was gone. Unable to delete post.
Fatal error: Uncaught Mpdf\MpdfException: Invalid size representation “0px, margin-bottom:0px” in /plugins/vendor/mpdf/mpdf/src/SizeConverter.php:35 Stack trace: #0 /plugins/vendor/mpdf/mpdf/src/Tag.php(4683): Mpdf\SizeConverter->convert(‘0px, margin-bot…’, 180.00155555556, 2.6458333333333, false) #1 /plugins/vendor/mpdf/mpdf/src/Mpdf.php(15282): Mpdf\Tag->OpenTag(‘TABLE’, Array, Array, 2099) #2 /plugins/includes/dkpdf-functions.php(177): Mpdf\Mpdf->WriteHTML(‘ <div class=”dk…’) #3 /wp-includes/class-wp-hook.php(286): dkpdf_output_pdf(Object(WP)) #4 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5 /wp-includes/plugin.php(515): WP_Hook->do_action(Array) #6 /plugins/vendor/mpdf/mpdf/src/SizeConverter.php on line 35
- This reply was modified 7 years, 2 months ago by Tina Hammar.
I had the same problem. I uninstalled wordfence and the problem was gone. Using another security plug-in instead. Sad.