PHP7 – Call to undefined function mysql_connect()
-
I updated my cPanel hosting to use PHP7. I now get a white screen and this error.
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/xxxxxx/public_html/wp-includes/wp-db.php:1549
I gather it’s something to do with mysql libraries/extensions. What should I have activated. These are the options I have on the PHP selector page. The ones in bold are checked. What should I have checked/unchecked? (apologies for the formatting)apcu imagick nd_mysqli pspell trader
bcmath imap nd_pdo_mysql raphf uuid
dba inotify oci8 redis wddx
dbase intl opcache snmp xdebug
dom json pdo soap xmlreader
eio ldap pdo_dblib sockets xmlrpc
enchant lzf pdo_pgsql stats xmlwriter
fileinfo mailparse pdo_sqlite sysvmsg xsl
gd mbstring pgsql sysvsem yaml
gender mcrypt phar sysvshm zip
gmagick memcached posix tidy
http mysqlnd propro timezonedb
- The topic ‘PHP7 – Call to undefined function mysql_connect()’ is closed to new replies.