-
Renato Alves replied to the topic Fatal error after updating to PHP 8.0 in the forum How-to & Troubleshooting 2 years, 4 months ago
@wcholbi Odd! Could you
var_dump
the$active_components
as suggested below?var_dump( $active_components );
if ( 'optional' !== $type && ! empty( $components['core'] ) ) {
$active_components['core'] = '1';
} -
Renato Alves replied to the topic Fatal error after updating to PHP 8.0 in the forum How-to & Troubleshooting 2 years, 4 months ago
@wcholbi Thank you for trying that again.
I’m still unable to replicate this issue but I think I know why that’s happening. Could you apply this patch and test it?
`
if ( ‘optional’ !== $type && ! empty( $components[‘core’] ) ) {
$active_components[‘core’] = ‘1’;
}
`
-
Renato Alves replied to the topic Fatal error after updating to PHP 8.0 in the forum How-to & Troubleshooting 2 years, 4 months ago
@wcholbi Could you share the error you are getting after applying my patch?
-
Renato Alves replied to the topic Fatal error after updating to PHP 8.0 in the forum How-to & Troubleshooting 2 years, 4 months ago
@wcholbi I’m able to replicate the issue and I have a fix for this here: https://github.com/buddypress/BP-REST/pull/450
Thanks for reporting the bug.
@wcholbi
Active 1 year, 8 months ago