WordPress.org

Forums

Connections Business Directory
[resolved] After update to 7.8, site has title error (5 posts)

  1. nengineer
    Member
    Posted 1 year ago #

    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/

  2. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ 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!

  3. nengineer
    Member
    Posted 1 year ago #

    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>

  4. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ 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.

  5. nengineer
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Connections Business Directory
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic