Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mustafaArik opened this issue Nov 13, 2024 · 0 comments
Open

Comments

@mustafaArik
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant