Deprecated: mysql_connect(): / Cannot modify header ??
-
I am getting the following error, on a default WordPress install using twentsixteen theme.
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home//public_html/wp-includes/wp-db.php on line 1520 Warning: Cannot modify header information - headers already sent by (output started at /home//public_html/wp-includes/wp-db.php:1520) in /home//public_html/wp-content/plugins/wordpress-seo/admin/class-admin-init.php on line 84 Warning: Cannot modify header information - headers already sent by (output started at /home//public_html/wp-includes/wp-db.php:1520) in /home//public_html/wp-includes/pluggable.php on line 1171The hosting company is saying the following..
If you wish to continue to use deprecated code under PHP 5.5, I understand that it’s possible to suppress deprecation errors by setting error_reporting in php.ini to exclude E_DEPRECATED:
error_reporting = E_ALL ^ E_DEPRECATED
Alternatively, I can arrange for your hosting to run on PHP 5.4, which is the latest version where MySQL is not deprecated / removed (PHP 7).
With either option, you will not be able to upgrade PHP to a more recent version, as MySQL has been removed from PHP 7 and more recent.
Is there anything i’m doing wrong or is it a hosting issue?
The topic ‘Deprecated: mysql_connect(): / Cannot modify header ??’ is closed to new replies.