• Resolved mcmau

    (@mcmau)


    Hello all,

    when Ive activated the plugin I get the error above the settings saying:

    Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in …/wp-content/plugins/fontsampler/vendor/twig/twig/lib/Twig/Node.php on line 42

    and
    same error in line 198

    I do understand that it has to do something with the php version.
    Mine is 7.4.8 and WP is 5.4.2

    If you need more info let me know as I am quite new to this.

    Kind regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kontur

    (@kontur)

    Thanks for the report! I will need to test with latest versions of PHP, but this sounds like a new syntax warning introduced with an PHP update. You should be able to “hide” those warnings if you set your error logging level higher than “E_WARNING” (https://www.php.net/manual/en/function.error-reporting.php) – you might be able to set this in you wp-config.php or even through your hosting settings. But eventually and better is that this should be addressed in the next plugin update ??

    Thread Starter mcmau

    (@mcmau)

    Thank you for the quick response!
    I hid the error for now and it’s still working fine ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated.’ is closed to new replies.