[wp-trac] [WordPress Trac] #52001: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() (was: WP 5.6 and PHP8 > PHP Fatal error: Uncaught Error: Call to undefined function)
WordPress Trac
noreply at wordpress.org
Wed Dec 9 19:17:44 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: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by hellofromTonya):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Hello @ipajen,
Welcome to Trac!
I'm sorry you are experiencing issues with WordPress 5.6.
The `mysql_connect()` function was deprecated in PHP 5.5 and removed in
7.0.0 [https://www.php.net/manual/en/function.mysql-connect.php see the
PHP documentation].
Since 3.9, WordPress uses `mysqli` on PHP 5.5 or later instead of the
deprecated mysql extension. See this post for more context:
[https://make.wordpress.org/core/2014/04/07/mysql-in-wordpress-3-9/ MySQL
in WordPress 3.9].
In #51988 related ticket, Sergey makes the following suggestion:
>I would suggest checking that the `mysqli` extension is available and the
`WP_USE_EXT_MYSQL` constant is not defined in `wp-config.php`.
I'm closing this ticket as this issue is not due to WordPress core
software.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52001#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list