WordPress.org

Support

Support » Plugins and Hacks » [Resolved] After update to 7.8, site has title error

[Resolved] After update to 7.8, site has title error

  • nengineer
    Participant

    @nengineer

    After upgrade to 7.8, my site’s title changed to the following:

    <title>
    <b>Warning</b>: Missing argument 2 for cnSEO::filterMetaTitle() in <b>/home/(redacted)/wp-content/plugins/connections/includes/class.seo.php</b> on line <b>188</b>

    <b>Warning</b>: Missing argument 3 for cnSEO::filterMetaTitle() in <b>/home/(redacted)/wp-content/plugins/connections/includes/class.seo.php</b> on line <b>188</b>
    (redacted)</title>

    http://wordpress.org/extend/plugins/connections/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author shazahm1
    Participant

    @shazahm1hotmailcom

    @ nengineer

    Likely you have a plugin installed that is incorrectly using the the_title filter. I say this because there is no third argument for the the_title filter.

    I recommend deactivating plugins one at a time until the error goes away, you’ve then found the plugin causing the error.

    Please let me know which one it is, thanks!

    nengineer
    Participant

    @nengineer

    I deactivated all plugins, except Connections, I still have the error.

    Only when I deactivate Connections does it go away.

    I’m using WordPress 3.5.2 with a child theme of the Desk Mess Mirrored theme.

    The theme header has the following line:

    <title><?php ( ( ! function_exists( 'wp_get_theme' ) ) || wp_get_theme()->get( 'Version' ) < '2.1' ) ? dmm_wp_title() : wp_title( '|', true, 'right' ); ?></title>

    Plugin Author shazahm1
    Participant

    @shazahm1hotmailcom

    @ nengineer

    The error is with the theme. I was incorrect usage is with the wp_title filter found in the theme files here. As you’ll see here, the filter requires three attributes and the filter is only passing one so when Connections hooks into it is not getting the three attributes.

    What I can do is in my code, make them optional so the error will not occur. You can safely role back to 0.7.7.1 until I release 0.7.8.1.

    nengineer
    Participant

    @nengineer

    Yeah, I dug around in the theme and found it too.

    If you can fix Connections to handle this error, that’ll be great.

    To save me the trouble of rolling back…I just went into the theme, and changed the title line to the following:

    <title><?php wp_title( '|', true, 'right' ) . bloginfo( 'name' ); ?></title>

    Seems to be working correctly now.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] After update to 7.8, site has title error’ is closed to new replies.