I am receiving the above error message in one of my PHP Scripts and wondered if somebody could give me a clue as to what it means…
The file path it gives me at the end of the error message leads me to a piece of code that, as far as I can tell, contains no class names. That code is here:
// -------------------------------------------------------------------------------------------------
// INCLUDES AND SETUP
// -------------------------------------------------------------------------------------------------
$phpEx = 'php';
$phpbb_root_path = get_option( 'wp2bb_phpbbpath' ) . '/';
$host = get_option( 'wp2bb_wpurl' );
$username=get_option( 'wp2bb_username' );
$usercolour=get_option( 'wp2bb_usercolor' );
include("wp2bbforum.php");
include("wp2bbadmin.php");
if (file_exists($phpbb_root_path . '/config.php')) {
$db = new $sql_db();
$cache = new cache();
}
The line number the error message refers to, within the above piece of code, corresponds to the line that says:
$db = new $sql_db();
Can anyone point me in the right direction to troubleshoot this script?