Problem occured on site after update version php on server

Problem occured on site after update version php on server.
On site server addministrator updated version php from 7.1.33 to 8.0.
My site works under MODX 8.1. Now site shows error - Call to undefined function get_magic_quotes_gpc().
How to fix this problem?
Line php_flag magic_quotes_gpc off in htaccess not helps.
If I add this line site shows 500 error.

Hi Aladdinych, switch back the php version to 7.4 and wait until MODX gets compatible to php 8. if i am right, it will be soon.