Help with Core Mods

From the provided error, it appears you have added in some custom code to your functions.php file in your theme. Suggest commenting out the last changes you made, but the error is clearly stating that line 50 is the culprit so that would be a good starting point if you’re unsure.

If this has happened since updating to WP v5.5 (or a new PHP version on your server) then the code you’re using is likely deprecated which may explain why this error is just suddenly displaying.

I wouldn’t recommend doing this, but as it’s a warning, you could also just turn off wp_debug (setting to false) at the end of file wp-config.php. Doing this will only hide the message, it will not fix the issue, and it’s possible to turn into something more serious over time.