Support » Plugin: All in One SEO Pack » PHP Notices Displaying Within Page Titles

  • I have spotted an issue which is causing PHP notices to appear if ‘WP_DEBUG’ is set to true in wp-config.php, and the All In One SEO Pack plugin (version 2.0.2) is activated.

    If the ‘Force Rewrites’ option within the ‘Performance’ settings of AIOSEOP is set to ‘Disabled’, the PHP notices are displayed within the <title> tags of WordPress Pages. Several notices are displayed, all along the lines of:

    ‘Notice: Undefined variable: authordata in <plugin location>/aioseop_class.php on line 1483’

    A similar set of notices also appears if you edit the page via the WordPress CMS – these notices are displayed within the ‘All in One SEO Pack’ meta box, and appear regardless of whether the ‘Force Rewrites’ option is enabled or disabled.

    Upon further investigation, it appears that it is possible to fix this issue by including the following lines of PHP code at the top of the apply_page_title_format() function within the ‘aioseop_class.php’ file:

    global $post;
    $authordata = get_userdata( $post->post_author );

    Please can the plugin be updated to incorporate this change? Thanks!

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

Viewing 1 replies (of 1 total)
  • Plugin Author Steve Mortiboy

    (@wpsmort)

    Support Manager at Semper Fi

    Hi pjh,

    We are aware of this issue and it will be fixed in the next release of the plugin.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notices Displaying Within Page Titles’ is closed to new replies.