All in One SEO Pack
Undefined Variable Causing Problems when WP_DEBUG is true (3 posts)

  1. Wes Todd
    Posted 4 years ago #

    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:

    	$_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.


  2. codinedawn
    Posted 3 years ago #

    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!

  3. SEO Dave
    Posted 3 years ago #

    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 :-)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All in One SEO Pack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic