Support » Plugin: Urvanov Syntax Highlighter » Notice: A non well formed numeric value

  • Resolved Vovastik

    (@vovastik)


    wp-config.php: When I set define( 'WP_DEBUG', true );
    I received messages on pages with Syntax Highlighter:

    Notice: A non well formed numeric value encountered in /home/…/wp-content/plugins/urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-formatter.php on line 118

    Notice: A non well formed numeric value encountered in /home/…/wp-content/plugins/urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-formatter.php on line 119

    The solution is here: https://kirkizh.ru/2018/02/php7-non-numeric-value
    That worked for me:

    118 $toolbar_height = (int)$font_size * 1.5 . 'px !important;';
    119 $info_height = (int)$font_size * 1.4 . 'px !important;';
    • This topic was modified 8 months, 3 weeks ago by Vovastik.
    • This topic was modified 8 months, 3 weeks ago by Vovastik.
    • This topic was modified 8 months, 3 weeks ago by Vovastik.
    • This topic was modified 8 months, 3 weeks ago by Vovastik.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice: A non well formed numeric value’ is closed to new replies.