• 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)
  • Have same problem, thousands of entries in debug.log, more information about this bug is described e.g. here with this workaround:

    Replace existing lines 4182 and 4183:

    if (isset($this->CurrentFont['cw'][$char])) {
    	$w = $this->CurrentFont['cw'][$char];

    with this:

    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 is 6.6.5 (September 2023).

    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 since version 6.4.2.

    Ov3rfly

    (@ov3rfly)

    Same problem with Jobs for WordPress 2.7.3, WordPress 6.4.2, PHP 8.1.x

    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.

    Same problem with Jobs for WordPress 2.7.5, WordPress 6.4.3, PHP 8.1.x

    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.