Upgraded php & wordpress but theme broke

<?php the_post_thumbnail(thumbnail); ?> should be <?php the_post_thumbnail( "thumbnail" ); ?>. thumbnail is not a defined constant, and the updated version of PHP is no longer converting undefined constants into strings for you.

It appears that PHP changed the “undefined constants” message from a notice to a fatal error sometime around version 8.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)