Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Warning: Missing argument 2 for bp_modify_page_title()

  • I just installed BuddyPress (1.5.3.1) for the first time and after completing the setup steps I have noticed that all of my Blog posts contain the following Buddypress messages immediately after the title:

    Warning: Missing argument 2 for bp_modify_page_title() in /public_html/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 270

    Warning: Missing argument 3 for bp_modify_page_title() in /public_html/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 270

    I am using a custom theme (Karma by Truethemes) and even if I deactivate the BuddyPress plugin these warnings now persist. Searching Google I have come across a lot of sites that have the same problem but no discussion about the source or resolution. Anyone have any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)

  • aces
    Participant

    @aces

    Is http://themes.truethemes.net/Karma/ the theme you are referring to?

    It doesn’t seem to be buddypress compatible out of the box.

    Have you installed the buddypress template pack and gone through the process of making it compatible? ie: https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/

    See also: https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-eleven-bp-1-5/ or for twentyten

    Thanks for the reply Aces.
    Yes that is the theme and I have installed the buddypress template pack and modified the templates indicated by the plugin. I have had success in getting the various pages (i.e. registration, member directory, etc) to now display but have had no luck in removing the above warnings from my blog posts yet.
    I will go through the details on the links you provided because they appear to indicate some additional templates. Will let you know how I fare.

    Thanks again.

    Well..I have BuddyPress configured and looking ok except for these annoying warning messages on the top of each of my blog posts:

    Warning: Missing argument 2 for bp_modify_page_title() in /public_html/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 270

    Warning: Missing argument 3 for bp_modify_page_title() in /public_html/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 270

    I did find someone on the BuddyPress France site who had encountered the same problem and then fixed it:
    http://bp-fr.net/groups/utilisation-configuration-optimisation-de-buddypress/forum/topic/message-derreur-affiche-au-dessus-de-chaque-article/

    But they didn’t post their solution!!!!!!!

    Help anyone! Thanks.

    I’ve seen this before when a theme or another plugin is using the ‘wp_title’ filter in a way that causes it to break in BuddyPress. If you can do a find-in-files, let me know what themes or plugins you have which contain the phrase ‘wp_title’, otherwise let us know which theme and all the plugins you are using.

    Thanks Paul. I will try to do a find-in file to get additional details but for now here are the theme and plug-in details:
    Theme: Karma by Truethemes
    Plug-ins:
    Akismet Version 2.5.5 | By Automattic
    Better WordPress Recent Comments Version 1.2.0 | By Khang Minh
    Category & Page I c o n s Version 0.8 | By wpdevelop
    Custom Post Type List Widget Version 1.1 | By Keith P. Graham
    Drop Cap Shortcode Version 1.0 | By Eka Kurniawan
    Haiku – minimalist audio player Version 0.4.4 | By Raygun
    Health Check Version 0.2.1 | By The WordPress.org community
    Microkid’s Related Posts Version 3.0.1 | By Microkid
    Polldaddy Polls & Ratings Version 2.0.12 | By Automattic, Inc.
    Q and A Version 0.2.5 | By Raygun
    SEO Rank Reporter Version 2.1.2 | By David Scoville
    Shareaholic | email, bookmark, and share Version 4.0.6.5 | By Shareaholic
    The Events Calendar Version 1.6.5 | By Shane & Peter, Inc.
    Top 10 Version 1.8 | By Ajay D’Souza
    WordPress SEO Version 1.1.5 | By Joost de Valk
    WP Super Cache Version 1.0 | By Donncha O Caoimh

    Thanks Paul. I have identified the culprit plug-in – Polldaddy Polls & Ratings Version 2.0.12 | By Automattic, Inc. The plug-in does use the wp_title and by disabling it I have eliminated the warning messages.

    Your help, and Aces, was greatly appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Warning: Missing argument 2 for bp_modify_page_title()’ is closed to new replies.
Skip to toolbar