black friday sale

Custom Fields
Re-Envisioned
Support MB Views Error: Deprecated: Unparenthesized `a ? b : c ? d : e`

  • Creator
    Topic
  • #22463
    Resolved brandonjp
    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #22468
    Long 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 Nguyen
    Moderator

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

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