Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ?

This shows up at the top of my website. How can I fix this?

Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /home/stpeters267/public_html/powerhousevac.com/wp-content/themes/shapely/inc/extras.php on line 442

my website is www.powerhousevac.com

Thank You,
Chad

Hi there

Sorry but where exactly? I can’t see it anywhere on the homepage

I have the same problem on my site. I fix the problem my self by updating the code on the specified row in the error message from:
$author_name = ( ‘’ != trim( $author_nickname ) ) ? $author_nickname : ( trim( $author_displayname ) != ‘’ ) ? $author_displayname : $author_fullname;
to:
$author_name = (( ‘’ != trim( $author_nickname ) ) ? $author_nickname : ( trim( $author_displayname ) != ‘’ )) ? $author_displayname : $author_fullname;

Would be great if you could fix this since my change get’s overritten after every update. :slight_smile:

Hi there

Thanks for sharing solution, make sure you are making all your changes in the child theme :wink: