I switched to PHP 8, everything works, but you can't view the details of the ads because there is already an HTTP 500 error, but if I use PHP 7.4, when creating the news, the admin panel does not allow me to upload an image because it says that it requires PHP 8.
I am also attaching the error_log file.