It seems the error in debug.php is not related.
Not an error, just a strict standards notice. CB and Joomla have some strict standards usage notices. Can be safely ignored. To disable ensure within PHP.ini for error reporting you're excluding strict notice. Just ensure you do not upgrade to PHP 5.4 or you'll get a lot of these and your site probably won't work. Setting error reporting in Joomla global configuration to none will suppress these as well, but it's best to use PHP.ini to turn strict notices off so you can further debug your site properly. Below is what error reporting should be set to in PHP.ini for debugging.
error_reporting = E_ALL & ~E_STRICT