Warning message generated in front end for PHP 7.4
-
When we switch PHP from 7.3 to 7.4 we get a warning generated in the Grops button on the user’s profile page:
Warning: Creating default object from empty value in /code/wp-content/plugins/buddypress/bp-groups/bp-groups-template.php on line 1036
https://sso-nittanyai-alliance.pantheonsite.io/alliance-programs/nittany-ai-challenge/resources-for-participants/teams/#mobile-wrapperHere is the full HTML that is generated:
<a href=”
Warning: Creating default object from empty value in /code/wp-content/plugins/buddypress/bp-groups/bp-groups-template.php on line 1036
https://sso-nittanyai-alliance.pantheonsite.io/alliance-programs/nittany-ai-challenge/resources-for-participants/teams/#mobile-wrapper”>Teams
<span class=”fa fa-sign-out”></span>The caused the link to not work and confused the browser asking the user to pick an app to open this with.
We were running BuddyPress 6.3, but after we updated to BuddyPress 7.3 the problem remained. It definitely seems to be associated with PHP 7.4.
Looking for help to get this functioning correctly in PHP 7.4.
- You must be logged in to reply to this topic.