WordPress.org

Ready to get started?Download WordPress

Forums

BulletProof Security
[resolved] Commenting Error on Buddpress Forum (49 posts)

  1. sweetmelody
    Member
    Posted 1 year ago #

    Just found this and it looks very close to the solution by doing some tricks with permalink setting > http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/forum-replies-causing-403-forbidden-error-to-occur-1/ . Kindly guide me on this as I can't get a plain picture of the steps required. Thank you very much!

  2. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm this is a possibility i never thought of because BPS will already alert you if you have not enabled/are using custom permalinks. So you would already have seen a BPS displayed alert if there was a problem with your permalinks. What are your permalinks settings? Don't get your hopes up as the possibility of this being the problem are very low, but it is possible that there is a unique issue going on here with BuddyPress.

  3. sweetmelody
    Member
    Posted 1 year ago #

    My permalink setting is 'day and time'. No alert so far but this problem has affected all my BP installed sites (3 sites)... :(

  4. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Actually i checked your site and your pretty permalink setting is "Day and name", which should be fine. I just wanted to eliminate that you were not using a permalink hack like .html in your permalink structure.

    Anyway based on the actual problem that is occurring and the php errors you showed me earlier the cause of the problem is very simple to see - even though you upgraded to BuddyPress 1.6.1, your site is not really running BuddyPress 1.6.1 and is running an older version of the BuddyPress plugin that had these known coding bugs in it that are causing the problem that you are experiencing on your website.

    So the only solution that i see is that you have to find a way to "really" upgrade to BuddyPress 1.6.1.

    Since i do not use BuddyPress I have no idea what you would do specifically to correct this problem.

    Or you can just give up trying to fix the BuddyPress problem and comment out the BPS security filter that I mentioned earlier.

  5. sweetmelody
    Member
    Posted 1 year ago #

    But I have checked with one of the BP developers and he said your method was the 'really' way to upgrade BP.

    Meanwhile, I have also discovered that the other 2 sites of mine are having the same problem too. 3 sites with failed BP installation? So coincidence?

    You have mentioned cache plugin before but I don't have any. Below is an item listed in the error log and it shows that something related to cache, is this the cause?

    PHP Warning: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The first argument should be either a string or an integer in /wp-includes/cache.php on line 537

    Sorry to bother you so much, this will be the last question and though I will not comment out the filter.

    Many, many thanks! Hope you already had a great weekend. :)

  6. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Ok here are the facts i have gathered in the last few months regarding this problem.

    1. BuddyPress versions prior to 1.6.1 had this exact same problem that is occurring on your website. The problem was caused by a coding issue that for some strange reason created malformed query strings. The exact same malformed query strings that are currently occurring on your websites.

    2. I followed up with several people (15 people) over a period of over 3 months to check and see if upgrading to BuddyPress 1.6.1 fixed the old coding issue. Every single one of those people have confirmed 100% that the old coding problem was fixed on their websites by upgrading to BuddyPress 1.6.1. And that the old problem was no longer occurring because the query strings were no longer being malformed.

    You are the only person i have come across that has upgraded to BuddyPress 1.6.1, but yet you are still experiencing the old problem that was occurring in older versions of BuddyPress.

    So when you look at all of the facts, the problem appears to be very obvious - the version of BuddyPress that you have installed on your websites is not really BuddyPress 1.6.1. Or some combination of files, plugins, themes, etc on your particular websites is somehow continuing to cause the old BuddyPress problem.

    The reason i mentioned looking at cache is because your websites are experiencing an old known BuddyPress problem in previous versions of BuddyPress that has been fixed as of BuddyPress 1.6.1. So logically cache might have something to do with the problem because cache might store old cached files. This was a long shot, but it does hold some logic. You can eliminate that cache has anything to do with this by clearing all of your cache.

    If it was me personally troubleshooting this I would use this method that i have suggested to you already.

    Install a new WordPress installation in another folder.
    Install BuddyPress 1.6.1 and test it.
    Install BPS and test that everything is working correctly.

    Now one last thing that i will point out to you again is this.
    You have Fatal php errors occurring on your website that are telling you that something is horribly wrong or broken with your BuddyPress installation. You have database errors that also indicate something is wrong or broken with your BuddyPress installation.

    Based on all the clues, the actual errors on your website, the fact that 15 other people are not experiencing this problem with BuddyPress 1.6.1 all obviously lead to one conclusion - BuddyPress 1.6.1 is either damaged on your websites, did not install correctly, is missing files or your websites have database corruption or damage.

    I cannot offer any more advice because i have already come to the obvious conclusion based on all the facts.

  7. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Resolving this - this is not a BulletProof Security problem and is an individual problem with this particular website and BuddyPress - this website is either damaged or corrupted or some other specific problem with this specific website is occurring.

    @sweetmelody - I am resolving this thread, but if you would like to post additional info at a later date then that would be fine. Thanks.

  8. sweetmelody
    Member
    Posted 1 year ago #

    I have set up another add on domain - a website with brand new WP & BP installation but brings out the same forum commenting error. It puzzles me...

    Secondly, I'm currently having 1 main domain and 4 add on domains. All of them with BPS installed. Is it because BPS on the main domain will interfere add on domains and cause PHP conflicts?

    Thank you!

  9. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    Yep you and me both on being puzzled???

    Well interestingly I have recently decided to install BuddyPress and bbpress and create a Forum site for BPS and BPS Pro questions. The typical blog comment posting has been overgrown on the AITpro site and its like searching for a needle in a haystack now to find answers so after doing lots of research I have chosen to go with BuddyPress and bbpress for the Forum platform for the new AITpro Forum site.

    So I guess i will become fairly knowledgeable with BuddyPress and bbpress eventually. The Forum site will not be created for at least a week so I'll have to get back to you when that is completed. As a reminder though i installed a test BuddyPress site and everything worked fine with BuddyPress and BPS and i checked with and confirmed with several people that are using BuddyPress and BPS and they were no longer having any issues with BuddyPress and BPS. ;)

    BPS needs to be installed on each site. When you install BPS on each site and use AutoMagic and activate BulletProof Modes then each site is completely independent of any other sites. In other words, the answer is no to your question as long as you have installed BPS on each site they are their own universes with their own separate security filters and the will not and do not apply that security from one site to another site - they are self-contained universes. ;)

  10. sweetmelody
    Member
    Posted 1 year ago #

    Thank you! Will wait till the forum is set up. ☺

  11. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    WOW!!! BuddyPress 1.6.1 is amazingly awesome!!!!!!!!!!!!!
    Ok i have setup the basic BuddyPress forum site and have not done any visual design or site structure things yet, but everything is working fine with BPS installed together with BuddyPress and bbpress.

    this is a new comment reply
    forum.ait-pro.com/hello-world/#comment-2

    this is a reply to an old comment
    forum.ait-pro.com/hello-world/#comment-3

    this is a group that i created and tested a comment reply and no problems
    forum.ait-pro.com/groups/test-group/

    And i just noticed this - your comment reply has /?#post-47 instead of /#comment-3
    vegeangel.com/groups/vegetarian-recipes/forum/topic/spaghetti-bolognaise/?#post-47

    I just thought of something really obvious - do you have more than one BuddyPress installation combined? Or in other words do you have a root website BuddyPress installation and also a subfolder website BuddyPress installation?

    this seems odd to me /groups/vegetarian-recipes/forum. is this forum another BuddyPress forum installation or is the just the path or naming convention you decided on the only BuddyPress installation is on this root website /vegeangle.com because i guess it would be possible to install another subfolder site in a folder called /forum. or maybe with BuddyPress you can have nested forums? i am not a BuddyPress expert so i am not sure what you are doing.

    And i just looked at your site and this looks like something wrong.

    when i hover over your main NAV menu Forum menu the url is /forums, but if i go to the submenu items the path is /groups. unless of course you have more than one WordPress installation and BuddyPress installation. ;)

    and what is the technical name for the Forum link here? is it a Group topic or some other kind of nested Forum thing that you would do in addition to a typical BuddyPress Setup?
    vegeangel.com/groups/vegetarian-recipes/forum/

    ok never mind i see that this is the "Forums for Groups" options in BuddyPress. I don't want to use that and instead am going to use "New! Site Wide Forums" so i will not be able to test that on this Live site, but i already tested this on a test site and it worked fine.

  12. sweetmelody
    Member
    Posted 1 year ago #

    Or in other words do you have a root website BuddyPress installation and also a subfolder website BuddyPress installation

    My main domain and add on domains are installed with BP, is this the cause of the problem?

    when i hover over your main NAV menu Forum menu the url is /forums, but if i go to the submenu items the path is /groups. unless of course you have more than one WordPress installation and BuddyPress installation

    Where is the submenu you are referring that shows /groups instead of /forms? Very interesting indeed, I really want to know.

    ok never mind i see that this is the "Forums for Groups" options in BuddyPress. I don't want to use that and instead am going to use "New! Site Wide Forums" so i will not be able to test that on this Live site, but i already tested this on a test site and it worked fine.

    The new BP has the option for 'Group' and 'Site Wide' forums as I've already installed BP earlier, hence, I didn't change it to 'Site Wide'.

  13. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    My main domain and add on domains are installed with BP, is this the cause of the problem?

    I was asking you if this could the problem. I do not know that since these are your websites and was only throwing out a possibility to check. I have no idea how you set up your websites so this is something only you would know and that you would need to check.

    Where is the submenu you are referring that shows /groups instead of /forms? Very interesting indeed, I really want to know.

    when i hover over your main NAV menu literally NAMED "Forum" the URL that is displayed to me is /forums/xxx/xxx, but if i hover over any of the submenu items the URL path that is displayed to me is /groups/xxx/xxx.

    I can only give you suggestions to what might be wrong on your website since i do not have access to it. BuddyPress and bbpress are working perfectly fine on my new BuddyPress Forum site and i have spoken to and confirmed that 15 other people are not having problems with BuddyPress 1.6.1 and BPS. Once again i can only make suggestions about what might be wrong on your websites.

  14. sweetmelody
    Member
    Posted 1 year ago #

    Help me. :( I have been seeking solution via Google search for 2 weeks but no fix. Do you have any more troubleshooting ideas?

    I have no idea how you set up your websites so this is something only you would know and that you would need to check

    I set up my websites with Simple Script and with no fancy modification.

    when i hover over your main NAV menu literally NAMED "Forum" the URL that is displayed to me is /forums/xxx/xxx, but if i hover over any of the submenu items the URL path that is displayed to me is /groups/xxx/xxx.

    This is because have BP group forum installed not site wide forum.

  15. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    I think at this point you probably need to hire someone to figure this out. I work 16-18 hour days 7 days a week supporting BPS Pro so I am not available for hire. Sorry. Plus I am becoming pretty knowledgeable with BuddyPress and bbPress, but I would not dare call myself a BuddyPress/bbPress Guru. ;)

    My New BuddyPress/bbPress BulletProof Security Forum is working wonderfully and perfectly without any issues with BPS/BPS Pro - BuddyPress and bbPress are TOTALLY AWESOME and KICK AZZZZZ!!!!!!!!!!!!!!

    The only other idea i can think of for you to look at is bbPress itself for the original problem. Here is what i suggest you try next.

    1. Make a complete backup of your website.
    2. Install or reinstall bbPress - NOT BuddyPress.
    3. check if the original problem is still happening.
    4. if your site is fubar after installing/reinstalling bbPress then restore it from the complete backup you made in step 1.
    5. And finally if the original problem is still happening then hire a BuddyPress/bbPress Guru to get this problem solved so you can move on with your life. ;)

  16. mort3n
    Member
    Posted 1 year ago #

    Hi @aitpro

    Recently installed BPS on an intranet-type site. Site setup is WP 3.4.2, BP 1.6.1 and a range of plugins.

    I experienced the exact error dealt with in this thread the first time I posted a new reply in an existing forum topic after installing BPS.

    Further testing has not resulted in this error reoccuring.

    I have tested new topic, new reply, different users, different user roles.

    I do use a cache plugin W3TC combined with a CDN. Since the error only occured immediately after activating BPS I find it likely to be a caching issue.

    If error reoccurs I'll open a new thread.

    Cheers
    Mort3n

    PS. I have the same permalink setup as sweetmelody. Likewise my comments have ?#post- rather than comment, but it works nonetheless.

  17. AITpro
    Member
    Plugin Author

    Posted 1 year ago #

    I installed a BuddyPress Forum w/bbPress website on 11-5 and have not had a single issue or problem at all with BuddyPress and BPS/BPS Pro. Not sure what is going on with SweetMelody's BuddyPress installation, but obviously this is some kind of isolated incident.

  18. sweetmelody
    Member
    Posted 11 months ago #

    I'm back with a new discovery. Did a test by resetting BPS to WP Default Mode with the following steps:

    1. Activate Default Mode on the Security Modes page.
    2. Use the Delete wp-admin .htaccess feature on the Security Modes page.

    And the above solves the 403 error.

    Hence, kindly provide further help over this issue, thanking you in advance.

  19. AITpro
    Member
    Plugin Author

    Posted 11 months ago #

    Yes, there is a known issue and it has to do with the Group coding in BuddyPress and I believe it only occurs if you have a Network/Multisite installation. It does not occur on my BuddyPress site that is installed on a Standard single site WordPress installation.

    You can comment out this security filter in your root .htaccess file and the 403 error should no longer occur.

    RewriteCond %{THE_REQUEST} \?\ HTTP/ [NC,OR]

    http://forum.ait-pro.com/forums/topic/buddypress-query-string-multisite/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags