- last update
6 months ago 2,180 pass
If I stop the database server of my Drupal site and browse it, I get an error page with:
PDOException: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in lock_may_be_available() (line 167 of /var/www/includes/lock.inc).
My concern is that I do not see any error in either web server error log file or syslog file.
I guess such errors were intended to go into watchdog (cf. line 214 of includes/errors.inc) but in such case module_implements('watchdog') does not return anything as the modules list cannot be retrieved.
I would suggest using error_log() in _drupal_log_erro() for any fatal error. Any opinion about that?
Needs review
7.0 β°οΈ
Last updated
After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.