WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tgrux
    Member
    Posted 1 year 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 1.6.15.3

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

  2. Dave Kiss
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags