All in One SEO Pack
PHP Notices Displaying Within Page Titles (2 posts)

  1. pjh
    Posted 3 years ago #

    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!


  2. Steve Mortiboy
    Support Manager at Semper Fi
    Plugin Author

    Posted 2 years ago #

    Hi pjh,

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

    Thank you.

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