I’ve recently inherited a site which has been transferred into my hosting account with a view that i update and maintain as it, however upon completion of the transfer clicking various links on the homepage returns the following errors:
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/sites/h/happyhensuk.com/public_html/includes/classes/class.phpmailer.php on line 19
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/sites/h/happyhensuk.com/public_html/includes/classes/class.DBMySql.php on line 21
Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) in /var/sites/h/happyhensuk.com/public_html/includes/classes/class.DBMySql.php on line 21
Unable to connect to database server!
I’ve tried changing the deprecated extensions but that gives another error