BPDB__CONNECT_ERROR_MESSAGE

The BuddyPress BPDB CONNECT ERROR MESSAGE constant.

Value (string)

'DB Error: cannot connect' 

Usage

  1. if ( defined( 'BPDB__CONNECT_ERROR_MESSAGE' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'BPDB__CONNECT_ERROR_MESSAGE' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (2)

The constant is defined in the following location(s).

/bp-forums/bbpress/bb-includes/backpress/class.bpdb.php  
  1. define( 'BPDB__CONNECT_ERROR_MESSAGE', 'DB Error: cannot connect' ); 
/bp-forums/bbpress/bb-settings.php  
  1. define( 'BPDB__CONNECT_ERROR_MESSAGE', ERROR Could not establish a database connection' );