Error: Deprecated: Unparenthesized `a ? b : c ? d : e`

Support MB Views Error: Deprecated: Unparenthesized `a ? b : c ? d : e`Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22463
    brandonjpbrandonjp
    Participant

    I'm getting this error. I'm guessing it comes from some code I've written somewhere, but I'm having a hard time tracking it down. Any suggestions?

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

    screenshot: https://cln.sh/HMrzQN

    #22468
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It's the deprecated function of Twig - a library we use to build the View. I've created a feature request for the developer team to update the new version of Twig. It does not affect any function of the plugin Meta Box so you can turn off the notice.
    https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/

    Thank you.

    #22521
    Long NguyenLong Nguyen
    Moderator

    Solve in the new version of MB Views 1.7.0, require PHP version 7.2.5 or higher.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.