Title: PHP Warning
Last modified: August 17, 2017

---

# PHP Warning

 *  [meken](https://wordpress.org/support/users/meken/)
 * (@meken)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-135/)
 * Hello,
 * I am on Ubuntu 16.04+Apache+php7.1-fpm:
 * FastCGI: server “/usr/lib/cgi-bin/php7-fcgi” stderr: PHP message: PHP Warning:
   A non-numeric value encountered in /var/www/domain.com/wp-content/plugins/dk-
   pdf/includes/mpdf60/mpdf.php on line 31965
 * Can you look into this?
 * Thank you.

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

 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9419010)
 * Hi meken,
 * seems related to this (PROBLEM 3):
    [https://stackoverflow.com/questions/43994365/upgrade-to-php7-1-and-mpdf-show-error-a-non-numeric-value-encountered-at-line](https://stackoverflow.com/questions/43994365/upgrade-to-php7-1-and-mpdf-show-error-a-non-numeric-value-encountered-at-line)
 * and this:
    [https://github.com/mpdf/mpdf/issues/302](https://github.com/mpdf/mpdf/issues/302)
 * I’ll take a look, thanks.
 *  Thread Starter [meken](https://wordpress.org/support/users/meken/)
 * (@meken)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9419590)
 * It seems complicated to me, I will await your fix, 🙂
 *  Thread Starter [meken](https://wordpress.org/support/users/meken/)
 * (@meken)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9424654)
 * Your paid version also has this bug?
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9455371)
 * Hi meken,
 * yes, DK PDF Generator uses mPDF library from DK PDF.
 * I worked on the PHP7 warning fixes, it will come solved in the next version of
   DK PDF (1.9.2), you’ll find more info about the fix I did here:
    [https://github.com/Dinamiko/dk-pdf/commit/e36e22b13f801a43b00573524503adca065b92c8](https://github.com/Dinamiko/dk-pdf/commit/e36e22b13f801a43b00573524503adca065b92c8)
 * Thanks,
    Emili
 *  [jalaluddinblogger](https://wordpress.org/support/users/jalaluddinblogger/)
 * (@jalaluddinblogger)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9487988)
 * same with me, i got this error
    **Fatal error: Call to undefined function mb_internal_encoding()
   in /home/domain/public_html/wp-content/plugins/dk-pdf/includes/mpdf60/mpdf.php
   on line 1519**
 * hope it will be fixed soon, Thanks Before
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9502263)
 * Hey there,
 * just to let you know that I ship 1.9.2 which should fix some PHP7 warnings.
 * Thanks,
    Emili
 *  Thread Starter [meken](https://wordpress.org/support/users/meken/)
 * (@meken)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9508985)
 * Thank you.
 * I got these new:
 *  FastCGI: server “/usr/lib/cgi-bin/php7-fcgi” stderr: PHP message: PHP Warning:
   Illegal string offset ‘LANG’ in /wp-content/plugins/dk-pdf/includes/mpdf60/classes/
   cssmgr.php on line 1190
    FastCGI: server “/usr/lib/cgi-bin/php7-fcgi” stderr:
   PHP message: PHP Warning: Illegal string offset ‘ID’ in /wp-content/plugins/dk-
   pdf/includes/mpdf60/classes/cssmgr.php on line 1136
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9588704)
 * Hi meken,
 * Regarding PHP7 warnings, I have a new version (1.9.4) that fix these errors ready
   to ship but I need to do more testing, will be great if you can test it before
   I release it.
 * To do so please download the .zip from here:
    [https://github.com/Dinamiko/dk-pdf/releases/tag/v1.9.4](https://github.com/Dinamiko/dk-pdf/releases/tag/v1.9.4)
 * then in your WordPress site deactive/uninstall your current version and upload/
   activate this one.
 * Thanks,
    Emili
 *  Thread Starter [meken](https://wordpress.org/support/users/meken/)
 * (@meken)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9590127)
 * Thank you.
 * Site 1. FastCGI: server “/usr/lib/cgi-bin/php7-fcgi” stderr: PHP message: PHP
   Warning: A non-numeric value encountered in /var/www/xxx.com/wp-content/plugins/
   dk-pdf/vendor/mpdf/mpdf/mpdf.php on line 30648
 * Site 2. FastCGI: server “/usr/lib/cgi-bin/php7-fcgi” stderr: PHP message: PHP
   Warning: A non-numeric value encountered in /var/www/xxx.com/wp-content/plugins/
   dk-pdf/vendor/mpdf/mpdf/Tag.php on line 1889
    and 2006, 2003, 6387
 * Suggestion: Why not support Page Builder by SiteOrigin? This plugin has 1m+ installs,
   your plugin does not support it yet.
 *  [alexgso](https://wordpress.org/support/users/alexgso/)
 * (@alexgso)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9593767)
 * Hi meken
 * Alex from SiteOrigin Here. This is more on us as we handle data in a weird manner.
   With that said, it’s possible to change a setting that will allow for DK PDF 
   to work. Please navigate to **WP Admin > Settings > Page Builder** and open the
   Content tab. Tick **Content Cache**. I would also recommend ticking **Content
   Style** and resaving the page you’re working on.
 * Please note that dynamic widgets (such as sliders) won’t be exported.
 *  Thread Starter [meken](https://wordpress.org/support/users/meken/)
 * (@meken)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9593820)
 * Thank you!
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9620405)
 * Hi Meken,
 * I’ve just created a new version (1.9.5) that includes the latest version of mPDF(
   v7), will be great if you can test it to see if PHP Warnings are fixed, you can
   download the new version from here:
    [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)
 * [@alexgso](https://wordpress.org/support/users/alexgso/) Thanks for the info,
   I’ll give it a try.
 * Cheers,
    Emili
 *  Thread Starter [meken](https://wordpress.org/support/users/meken/)
 * (@meken)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9625265)
 * It seems ok to me, thanks.

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

The topic ‘PHP Warning’ 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

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

 * 13 replies
 * 4 participants
 * Last reply from: [meken](https://wordpress.org/support/users/meken/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/php-warning-135/#post-9625265)
 * Status: not resolved