Skip to content

Fatal error: Unparenthesized a ? b : c ? d : e is not supported.  #31

Description

@mustafaArik

My wordpress site has error on PHP 8.1

Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in .../wp-content/plugins/cherry-plugin/includes/plugin-assets.php on line 102

on line 102

$https = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";

i fix this issue

$https = ( empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ) ? "s" : "";

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions