[wp-trac] [WordPress Trac] #52001: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect()

WordPress Trac noreply at wordpress.org
Wed Dec 9 19:41:12 UTC 2020


#52001: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect()
--------------------------+------------------------
 Reporter:  ipajen        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Database      |     Version:  5.6
 Severity:  blocker       |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------

Comment (by ipajen):

 @hellofromTonya @desrosj
 Thank you, I checked the wp-config.php and I did not have the
 WP_USE_EXT_MYSQL and mysqli is enabled in the extension.

 I was using PHP 7.4 (where the mysql_connect() was removed already and
 everything worked fine) until before upgrading to PHP 8. No changes has
 been made except upgrading to PHP 8. So the question is why does it want
 to use mysql_connect instead of correct mysqli. Got 3 word press
 installltions on same hosting and all has the same problem, one of is very
 newly installed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52001#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list