All in One SEO Pack
Fix For: Undefined index: aiosp_front_meta_tags (2 posts)

  1. tgrux
    Posted 3 years ago #

    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


  2. Dave Kiss
    Posted 3 years ago #

    Same error, Tim's logic makes sense to me.

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