• 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.

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is the only helpful code I’ve found to solve the issue (for now). All in One was causing a blank wp-admin screen… Thanks!

    Looked through a dozen or so pages before finding this one, the other solutions either didn’t work or basically turned the function off which meant when the plugin was disabled the notice it was disabled was gone.

    Thanks Wes 🙂

    David

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: All in One SEO Pack] Undefined Variable Causing Problems when WP_DEBUG is true’ is closed to new replies.