You have encountered an unexpected problem. Detailed information has been sent to the administrator.

We apologize for the inconvenience

- Code 101: Database connection failed

Fatal error!

An error occurred while trying to write to the log: error_log(/opt/Apache/htdocs/peerpower/opt/Apache/htdocs/peerpower/log/pa.log) [function.error-log]: failed to open stream: No such file or directory.

Check that the log file (/opt/Apache/htdocs/peerpower/opt/Apache/htdocs/peerpower/log/pa.log) is writeable by the web server.

Here's the message I was trying to log:

[04/29/17 1:25:02] [ ERROR: ][ An exception occurred: code 101, message Database connection failed #0 /opt/Apache/htdocs/peerpower/core/db/Dal/Dal.php(91): Dal::get_connection() #1 /opt/Apache/htdocs/peerpower/core/db/Dal/Dal.php(199): Dal::query('SELECT COUNT(*)...', NULL) #2 /opt/Apache/htdocs/peerpower/core/db/Dal/Dal.php(207): Dal::query_one('SELECT COUNT(*)...', NULL) #3 /opt/Apache/htdocs/peerpower/extended/Public_Profile/Public_Profile.php(235): Dal::query_first('SELECT COUNT(*)...') #4 /opt/Apache/htdocs/peerpower/web/peopledirectory.php(25): Public_Profile::user_listing_by_link('p', '7', 100) #5 {main}]