• Lines 118 & 119,
    I think its a miss type,

    original:

    
    // Determine font size
    // TODO improve logic
    if ($hl->setting_val(CrayonSettings::FONT_SIZE_ENABLE)) {
        $_font_size = $hl->setting_val(CrayonSettings::FONT_SIZE);
        $font_size = $_font_size . 'px !important;';
        $_line_height = $hl->setting_val(CrayonSettings::LINE_HEIGHT);
        // Don't allow line height to be less than font size
        $line_height = ($_line_height > $_font_size ? $_line_height : $_font_size) . 'px !important;';
        $toolbar_height = $font_size * 1.5 . 'px !important;';
        $info_height = $font_size * 1.4 . 'px !important;';
    
    

    seems like $toolbar_height & $info_height use $font_size which is a string instead $_font_size.

    
    $toolbar_height = $_font_size * 1.5 . 'px !important;';
    $info_height = $_font_size * 1.4 . 'px !important;';
    

    seems to resolve it.

    PS. found after upgrading to PHP7.1

    • This topic was modified 6 years, 11 months ago by rabin.io.
  • The topic ‘A non well formed numeric value encountered in crayon_formatter.class.php’ is closed to new replies.