[wp-trac] [WordPress Trac] #55576: DB connection fail on every computer restart

WordPress Trac noreply at wordpress.org
Thu Apr 14 16:45:45 UTC 2022


#55576: DB connection fail on every computer restart
----------------------------+-----------------------------
 Reporter:  matt.scott      |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  5.9.3
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 I have a local installation.  Each time I switch on the computer, Safari
 reloads my last visited.  Mostly the last page, before shutdown, is the
 admin of my development site.  Each time this site appears and says 'Error
 establishing a database connection', I then press reload and then no
 problems any more...  I never worried about this as there is a easy
 solution.
 Then I noticed the below in the debug.log:

 [14-Apr-2022 14:04:38 UTC] PHP Fatal error:  Uncaught Error: Call to
 undefined function mysql_connect() in .../wp-includes/     wp-db.php:1785
 1402 Stack trace:
 1403 #0 .../wp-includes/wp-db.php(724): wpdb->db_connect()
 1404 #1 .../wp-includes/load.php(561): wpdb->__construct('...', '...',
 '...', '127.0.0.1')
 1405 #2 .../wp-settings.php(124): require_wp_db()
 1406 #3 .../wp-config.php(121): require_once('/Users/Yuma/Dev...')
 1407 #4 .../wp-load.php(50): require_once('/Users/Yuma/Dev...')
 1408 #5 .../wp-admin/admin.php(34): require_once('/Users/Yuma/Dev...')
 1409 #6 .../wp-admin/edit.php(10): require_once('/Users/Yuma/Dev...')
 1410 #7 {main}
 1411   thrown in .../wp-includes/wp-db.php on line 1785

 That seems very unlikely that WordPress made a PHP Fatal Error.  I haven't
 noticed this error in Chrome.  Maybe it's only a Safari problem.  My
 feeling is that MacOS shutdown by ending PHP, then my installation tries
 to inform the database and finds no PHP functions.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55576>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list