WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pjh
    Member
    Posted 9 months 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!

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

  2. wpsmort
    Member
    Posted 8 months ago #

    Hi pjh,

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

    Thank you.

Reply

You must log in to post.

About this Plugin

About this Topic