Overwrote index.php. When I restored it, I got lots of Notice level errors

Someone else had tried to help my client. They had enabled debugging in /wp-config.php

define('WP_DEBUG', true);

When I turned off debugging, the site and admin loaded correctly.

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