Title: PHP Error float to int
Last modified: July 8, 2023

---

# PHP Error float to int

 *  [stoni81](https://wordpress.org/support/users/stoni81/)
 * (@stoni81)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-error-float-to-int/)
 * I found a lot of PHP Errors with the Plugin, can you solve this?
 * [07-Jul-2023 19:24:54 UTC] PHP Deprecated: Implicit conversion from float 1.7652999999999999
   to int loses precision in /xxxx/wp-content/plugins/job-postings/tcpdf/tcpdf.php
   on line 4183
 * in My Log File i have more than 1000 of this 🙂

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

 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-error-float-to-int/#post-17143112)
 * Have same problem, thousands of entries in `debug.log`, more information about
   [this bug is described e.g. here](https://github.com/tecnickcom/TCPDF/pull/524)
   with this workaround:
 * Replace existing lines 4182 and 4183:
 *     ```wp-block-code
       if (isset($this->CurrentFont['cw'][$char])) {
       	$w = $this->CurrentFont['cw'][$char];
       ```
   
 * with this:
 *     ```wp-block-code
       if (isset($this->CurrentFont['cw'][intval($char)])) {
       	$w = $this->CurrentFont['cw'][intval($char)];
       ```
   
 * WordPress 2.6.2, WordPress 6.3.2, PHP 8.1.x
 * Note: Included TCPDF package in plugin is 6.4.1 (March 2021), current version
   [TCPDF at GitHub](https://github.com/tecnickcom/TCPDF) is 6.6.5 (September 2023).
 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/php-error-float-to-int/#post-17298154)
 * Same problem with Jobs for WordPress 2.7.1, WordPress 6.3.2, PHP 8.1.x
 * Please update TCPDF library, the issue is [known there and fixed](https://github.com/tecnickcom/TCPDF/pull/387)
   since version 6.4.2.
 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-error-float-to-int/#post-17378811)
 * Same problem with Jobs for WordPress 2.7.3, WordPress 6.4.2, PHP 8.1.x
 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-error-float-to-int/#post-17430955)
 * Same problem with Jobs for WordPress 2.7.4, WordPress 6.4.3, PHP 8.1.x
 * Please fix, this is very annoying and floods the `debug.log` a lot.
 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-error-float-to-int/#post-17515207)
 * Same problem with Jobs for WordPress 2.7.5, WordPress 6.4.3, PHP 8.1.x
 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/php-error-float-to-int/#post-17685481)
 * Same problem with Jobs for WordPress 2.7.7, WordPress 6.4.4, PHP 8.1.x
 * Please fix this soon, it causes **over 100.000 entries** in `debug.log` every
   few days.

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

The topic ‘PHP Error float to int’ is closed to new replies.

 * ![](https://ps.w.org/job-postings/assets/icon-256x256.jpg?rev=1702382)
 * [Job Postings](https://wordpress.org/plugins/job-postings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/job-postings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/job-postings/)
 * [Active Topics](https://wordpress.org/support/plugin/job-postings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/job-postings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/job-postings/reviews/)

## Tags

 * [conversion](https://wordpress.org/support/topic-tag/conversion/)
 * [float](https://wordpress.org/support/topic-tag/float/)
 * [from](https://wordpress.org/support/topic-tag/from/)
 * [Implicit](https://wordpress.org/support/topic-tag/implicit/)
 * [PHP Deprecated](https://wordpress.org/support/topic-tag/php-deprecated/)

 * 6 replies
 * 2 participants
 * Last reply from: [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/php-error-float-to-int/#post-17685481)
 * Status: not resolved