The problem I am having is that when I start a session using another plugin the headers have already been sent by the WordPress Error Handling. Here are the errors I get because of the undefined variable:
Notice: Undefined index: aiosp_enabled in .../.../wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 766
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at .../.../wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php:766) in .../.../wp-content/plugins/wp-custom-admin-bar/custom-admin-bar-functions.php on line 8
My suggestion would be to add this before that statement:
if(!isset($_POST['aiosp_enabled'])){
$_POST['aiosp_enabled'] = null;
}
Or some variation on that to get rid of that notice. Thanks for you help as I am sure that other plugin and theme developers are having the same problem.