Title: Looking for PHP7 Testers
Last modified: October 25, 2017

---

# Looking for PHP7 Testers

 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/)
 * 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](https://github.com/Dinamiko/dk-pdf/releases/download/v1.9.5/dk-pdf.zip)
 * Thanks,
    Emili
    -  This topic was modified 8 years, 7 months ago by [dinamiko](https://wordpress.org/support/users/dinamiko/).

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [sagiet](https://wordpress.org/support/users/sagiet/)
 * (@sagiet)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9624135)
 * hi, I run php 7.0.
    I can help test 🙂
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9624310)
 * Hi sagiest,
 * yes please, let me know here either if it works or not, thanks.
 * Cheers,
    Emili
 *  [shkembechorba](https://wordpress.org/support/users/shkembechorba/)
 * (@shkembechorba)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9648893)
 * I can test it too. Though, have not gotten any errors so far with the current
   version.
 *  [speed4trade](https://wordpress.org/support/users/speed4trade/)
 * (@speed4trade)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9714291)
 * 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](https://wordpress.org/support/users/besssam/)
 * (@besssam)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9718826)
 * 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](https://sara-tr.net/info.php)
 * You can test Pdf-Buttom at
    [https://sara-tr.net/ar/archives/properties/sa-1250/](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.
 *  [cliftc386](https://wordpress.org/support/users/cliftc386/)
 * (@cliftc386)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9757137)
 * 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.
 *  [Amazing Full Stack Creatives](https://wordpress.org/support/users/amazingwp/)
 * (@amazingwp)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9795425)
 * 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?
 *  [Tina Hammar](https://wordpress.org/support/users/tina-hammar/)
 * (@tina-hammar)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9814409)
 * 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 8 years, 5 months ago by [Tina Hammar](https://wordpress.org/support/users/tina-hammar/).
 *  [Tina Hammar](https://wordpress.org/support/users/tina-hammar/)
 * (@tina-hammar)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9814420)
 * 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 8 years, 5 months ago by [Tina Hammar](https://wordpress.org/support/users/tina-hammar/).
 *  [Tina Hammar](https://wordpress.org/support/users/tina-hammar/)
 * (@tina-hammar)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9814604)
 * 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 8 years, 5 months ago by [Tina Hammar](https://wordpress.org/support/users/tina-hammar/).
 *  [Tina Hammar](https://wordpress.org/support/users/tina-hammar/)
 * (@tina-hammar)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9814608)
 * 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
 *  [Tina Hammar](https://wordpress.org/support/users/tina-hammar/)
 * (@tina-hammar)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9814620)
 * SVG images are not rendered correctly.
 *  [Tina Hammar](https://wordpress.org/support/users/tina-hammar/)
 * (@tina-hammar)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9814729)
 * 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>
 *  [vlatkata](https://wordpress.org/support/users/vlatkata/)
 * (@vlatkata)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/looking-for-php7-testers/#post-9970886)
 * 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?
 *  [Nazar Hotsa](https://wordpress.org/support/users/bugnumber9/)
 * (@bugnumber9)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/looking-for-php7-testers/page/2/#post-10186574)
 * Please, delete, wrong thread.

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Looking for PHP7 Testers’ is closed to new replies.

 * ![](https://ps.w.org/dk-pdf/assets/icon-256x256.png?rev=3396282)
 * [DK PDF - WordPress PDF Generator](https://wordpress.org/plugins/dk-pdf/)
 * [Support Threads](https://wordpress.org/support/plugin/dk-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/dk-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dk-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dk-pdf/reviews/)

## Tags

 * [HTTP error 500](https://wordpress.org/support/topic-tag/http-error-500/)
 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 15 replies
 * 0 participants
 * Last reply from: [Nazar Hotsa](https://wordpress.org/support/users/bugnumber9/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/looking-for-php7-testers/page/2/#post-10186574)
 * Status: not a support question