Skip to content

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

@mustafaArik

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" : "";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions