Support » Plugin: All in One SEO Pack » Fix For: Undefined index: aiosp_front_meta_tags

  • I was receiving the following php notice in my dev environment (on the homepage) when using this plugin:

    Notice: Undefined index: aiosp_front_meta_tags in /.../all-in-one-seo-pack/aioseop.class.php on line 348

    I believe the issue is the if/else shorthand is backwards for line 348:

    $front_meta = isset( $aioseop_options['aiosp_front_meta_tags'] ) ? '' : stripcslashes( $aioseop_options['aiosp_front_meta_tags'] );

    I’m assuming the if/else should set $front_meta to ‘ ‘ if isset returns false like so:

    $front_meta = isset($aioseop_options['aiosp_front_meta_tags']) ? stripcslashes($aioseop_options['aiosp_front_meta_tags']) : '';

    That way if isset returns false $front_meta is set to blank, no stripcslashes of the unset $aioseop_options[‘aiosp_front_meta_tags’].

    Please let me know if I am correct with this update. I know this doesn’t break the plugin but seems like it might cause problems at some point.

    Running: WordPress 3.5, AIOSP v 1.6.15.3

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fix For: Undefined index: aiosp_front_meta_tags’ is closed to new replies.