Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-template-notice failure


  • melodies
    Participant

    @melodies

    Hello,

    After upgrading to the latest version of WordPress (4.6.1) and BuddyPress (2.6.2), the bp-template-notice functionality stopped working.

    BuddyPress’s “bp-template-notice” that is supposed to show success (green bar) and error (red bar) notifications (such as “Message successfully sent” with a green background) in the header are no longer showing up when a message is sent.

    This issue is happening regardless of which theme is activated. Please, how can this be fixed?

    Wordpress version: 4.6.1
    BuddyPress Version: 2.6.2

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

  • Paul Gibbs
    Keymaster

    @djpaul

    What versions did you upgrade from?


    melodies
    Participant

    @melodies

    I upgraded from BuddyPress 2.6.1.1 and WordPress 4.5.3.


    melodies
    Participant

    @melodies

    Is there a fix to get bp-template-notice to work properly with WordPress version: 4.6.1?


    danbp
    Moderator

    @danbp

    As it is working, you can’t expect a fix. 😉 (see #6112) If you think you have found a bug, open a ticket and give any details to recreate the issue: theme name, used plugins, php version.

    Have you tried to create an error ? When you’re sure that a notice should appear, and you don’t see it, check first the source of the page (right clik – page source). Sometimes you’ll find it in the code but something avoid it to appear on the screen.


    melodies
    Participant

    @melodies

    Yes, I have tried to create an error, and the code is not even appearing in the page source. What could be causing it not to appear there?

    I have deactivated all plugins, and I also tried to get the “success/error” message to show up on some of the popular themes (Twenty Sixteen and Twenty Fifteen). It is still not working, and I have no idea why.

    Since this issue started when I updated BuddyPress and WordPress, I think the problem is rooted in one of the two.

    Can you please tell me which file is responsible for the “bp-template-notice” functionality?
    & Where can I find it?

    Thank you.

    To: @djpaul @danbp


    danbp
    Moderator

    @danbp

    Notices and error msg can be related to many things. It’s difficult to tell what desn’t work on your install.

    Those msg are mostly displayed via the template_notices hook. This hook is on all bp templates.
    (see list)

    That said, the discribed issue is specific to your install. You’re the only one claiming about it, so i guess you use a plugin or some custom code who compromise msg or notices to appear.

    Can you give details about your install please ?


    melodies
    Participant

    @melodies

    Hello @danbp,
    Below are the details, as requested:

    – The WordPress version was 4.6.1.
    (upgraded to 4.7 to see if that will solve the problem, but it didn’t).
    – The BuddyPress version is 2.7.2.
    – The BbPress version is 2.5.11.
    – The problem started when I upgraded from “WordPress 4.5.3” and “BuddyPress 2.6.1.1” to “WordPress 4.6.1” and “BuddyPress 2.6.2.”
    – The theme I tested with is: Twenty Sixteen.
    – I have not modified the core files.
    – WordPress was installed as a directory, in both root and a subdirectory (Both are having the same problem).
    – The only custom functions in bp-custom.php is define ‘BP_FRIENDS_SLUG’.
    – The server is running on nginx, and there are no errors in the server log files for today.

    I deactivated all non-BuddyPress related plugins, to make sure they’re not the cause of the problem.

    This is the only notice that ever appears on the screen and in the source of the page:

    <div id=”message” class=”bp-template-notice updated”>

    <p>You successfully left the group.</p>

    </div>

    This happens when I click the “leave group” button on the Groups page, and then refresh the page. After that, if I click on a BuddyPress profile page, it will still display “You successfully left the group” on the profile page as well. Trying to create a new success or error notice by clicking the “Add Friend” button, making an “edit profile” change, or refreshing the page does not change or remove the notice either. No other notice will show except for “You successfully left the group.”

    I do not use any cache plugins.

    I contacted the host company to see if there is a problem with the install or the server, but they said they couldn’t find any problems on their end. They cleared the server cache and uploaded new WordPress files, but the BuddyPress problem is still there.

    Why is “You successfully left the group” the only notice showing on all bp templates?


    danbp
    Moderator

    @danbp

    Do you use a child theme ?


    melodies
    Participant

    @melodies

    No, I don’t use a child theme for the Twenty Sixteen theme.


    danbp
    Moderator

    @danbp

    Sorry, I’m unable to reproduce your issue.

    Can you try with another browser ?
    Can you activate browser debug tool and check for some java errors ?
    If not, can you share an URL ?


    melodies
    Participant

    @melodies

    I have tried with Firefox, Internet Explorer, and the Microsoft Edge browser. They are all having the same issue.

    You will need an account to be able to access the BuddyPress pages.
    What is a good email address or any alternative to send you the URL and a user account password to use for logging in?


    melodies
    Participant

    @melodies

    Hi @danbp,
    I’m still waiting for your reply.


    danbp
    Moderator

    @danbp

    Sorry, i don’t act privately on user’s site.

    If you’re unable to solve your issue, hire somebody who can help you on BP Job Board.


    melodies
    Participant

    @melodies

    Hi @danbp,

    This is the situation:

    I’m not asking you to act privately. I’m simply trying to give you a password to be able to log in because, if not, you will need to pay a membership fee to log in.

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Skip to toolbar