Skip to:
Content
Pages
Categories
Search
Top
Bottom

Warning: Missing argument 2 for bp_modify_page_title()


  • Michel
    Participant

    @mib314

    Hello,

    I working with WP 3.8.1, buddypress 1.9.2 and my them is from ElegantThem -> SimplePress.

    Every page has the same warning in the header -> Title tag.

    Warning: Missing argument 2 for bp_modify_page_title() in /home/adecs/www/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 344

    Warning: Missing argument 3 for bp_modify_page_title() in /home/adecs/www/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 344
    Page Title

    After a short chekt by google I see some WP site with the same error.

    Some body now a solution?

    Thank

    Michel B.

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

  • Henry Wright
    Moderator

    @henrywright

    Hi @mib314

    It is likely that your theme is using bp_modify_page_title with just one argument. Try searching your theme for bp_modify_page_title. If you find it, and it is passing just one argument then you have identified the problem. Then, it’s probably worth letting the theme author know.

    You’ll notice a comma is used to separate arguments.

    Valid:
    bp_modify_page_title( $argument1, $argument2 )

    Problematic:
    bp_modify_page_title( $argument1 )


    shanebp
    Moderator

    @shanebp

    @henrywright – ‘Close, but you’re way off’. -homer simpson

    Problematic:
    bp_modify_page_title( $argument1, $argument2 )

    Valid:
    bp_modify_page_title( $argument1, $argument2, $argument3 )

    Specific:
    bp_modify_page_title( $title, $sep, $seplocation )


    @mib314
    – your best bet is to file a ticket with the creators of your theme.
    They’re probably calling wp_title() without passing all three arguments.
    So the BP filter call is throwing the warnings.


    Henry Wright
    Moderator

    @henrywright

    Definitely what @shanebp said! 🙂

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