• Plugin Author dinamiko

    (@dinamiko)


    Hey there,

    I just created a new version (1.9.5) that includes the latest version of mPDF library (version 7), this version of DK PDF should fix PHP7 warnings. Will be great for me if you can test it and leave me some feedback here in this ticket.

    So if you’re in a server that runs PHP7 will be great if you can test in there, that way I’ll have real feedback before I publicy release the new version here in WordPress repo.

    Here is the link to download it:
    https://github.com/Dinamiko/dk-pdf/releases/download/v1.9.5/dk-pdf.zip

    Thanks,
    Emili

    • This topic was modified 7 years, 1 month ago by dinamiko.
Viewing 15 replies - 1 through 15 (of 15 total)
  • hi, I run php 7.0.
    I can help test ??

    Plugin Author dinamiko

    (@dinamiko)

    Hi sagiest,

    yes please, let me know here either if it works or not, thanks.

    Cheers,
    Emili

    shkembechorba

    (@shkembechorba)

    I can test it too. Though, have not gotten any errors so far with the current version.

    speed4trade

    (@speed4trade)

    Hello,
    some php files are not included in the link.
    I get the following warnings in PHP 7.1

    PHP Warning: Illegal string offset ‘ID’ in C:\xxx\wp-content\plugins\dk-pdf\includes\mpdf60\classes\cssmgr.php on line 1136
    PHP Warning: Illegal string offset ‘LANG’ in C:\xxx\wp-content\plugins\dk-pdf\includes\mpdf60\classes\cssmgr.php on line 1139
    PHP Warning: Cannot assign an empty string to a string offset in C:\xxx\wp-content\plugins\dk-pdf\includes\mpdf60\classes\cssmgr.php on line 1136
    Cannot modify header information – headers already sent by (output started at C:\xxx\wp-content\plugins\dk-pdf\includes\mpdf60\mpdf.php:8331) in c:\xxx\wp-admin\includes\misc.php on line 1114

    Files are 1.9.3 version

    Thanks!
    Thomas

    bassam

    (@besssam)

    Hi
    i am getting HTTP ERROR 500 whenever click on PDF-button
    “This page isn’t working
    sara-tr.net is currently unable to handle this request.
    HTTP ERROR 500”

    you can get info from if you need:
    https://sara-tr.net/info.php

    You can test Pdf-Buttom at
    https://sara-tr.net/ar/archives/properties/sa-1250/

    note:
    I use DK-ver 1.9.3 and now i use v-1.9.5 and same result.

    I just installed it on my localhost that is running PHP 7. It fixed all of the PHP errors and everything looks good with my installation. Please update us when the stable version is ready for production.

    Hello,

    Thanks for adding php 7.0 support!

    With the current version of your plugin we use the constant “_MPDF_TTFONTPATH” and “_MPDF_PATH” to add additional fonts.
    In a newer version of mpdf this has been replaced by the “AddFontDirectory” function.

    Can you add a filter to allow altering the $mpdf object created in dkpdf-functions.php on line 134?

    Ignore 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 6 years, 11 months ago by Tina Hammar.

    Ignore 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 1727

    Warning: 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 6 years, 11 months ago by Tina Hammar.

    Changing 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 6 years, 11 months ago by Tina Hammar.

    I 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

    SVG images are not rendered correctly.

    Unable 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>

    Version 1.9.3 gives me error when exporting to pdf.
    Updated to version 1.9.5 and after export, half of the first page of the document is blank. If it’s in landscape, page and a half is blank. After the blank space is the document.
    Previously the plugin worked great. But now I’m with PHP version: 7.1.11 and it seems it doesn’t work correctly. Any chance of a fix?

    Please, delete, wrong thread.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Looking for PHP7 Testers’ is closed to new replies.