BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 11
    buddyuser on #46689

    Hi,
    Thanks for the response.

    There isn’t any rules I can see (I didn’t add any either), nor do I see wp-admin/admin-ajax.php path having been blocked in the Security Firewall activity log at any point.

    Cloudflare has integrated their “Managed Rules” into free accounts, but turning them off/accessing them doesn’t seem possible on a free tier account.

    In WAF->Tools I allowed my servers’ IP address in case that might help, but that didn’t fix the problem.

  • Participant
    Level: Initiated
    Posts: 11
    buddyuser on #46644

    Hi,

    I have figured out the problem but not the solution.

    It seems the problem is Cloudflare. When I disable Cloudflare entirely from my site, reports now show the “Thank you for reporting” and are appearing in the database.

    When I re-enable Cloudflare, the “There was a problem. Please try again later.” error returns and entries don’t appear in the database.

    For Cloudflare, I am only using the default settings for free account, no custom rules. All parts of site are proxied by CF (by default), SSL Encryption is set to “Full”, Caching level is set to “Standard”, TTL 4 hours — basically, everything is default CF free account.

    When CF is enabled, the page response header shows: cf-cache-status: DYNAMIC.

    I am not using a caching plugin, since I disabled it.

    Do you know why Cloudflare would cause this issue and how to continue using it but have the report function work correctly?

  • Participant
    Level: Initiated
    Posts: 11
    buddyuser on #46630

    Hi,

    For the local XAMPP version the server is Windows NT 10.0 AMD64, Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/7.4.29

    The database is mysqli, 10.4.24-MariaDB, mysqlnd 7.4.29

    For the real site with the report issue, I checked the PHP error logs, assuming this is the standard log file (public_html > error_log), and it doesn’t seem to be creating any error messages when I attempt to report a user and get the “There was a problem. Please try again later.” response.

    There are some recent errors though, one is for Redis not connecting because I’m having some issues with Redis at the moment, the others are below:

    ———————
    [24-Sep-2022 01:16:52 UTC] PHP Notice: Trying to access array offset on value of type null in /home/mysite/public_html/wp-content/plugins/bp-custom.php on line 150

    [24-Sep-2022 01:16:52 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/public_html/wp-content/plugins/bp-custom.php:105) in /home/mysite/public_html/wp-login.php on line 462

    [24-Sep-2022 01:16:52 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/public_html/wp-content/plugins/bp-custom.php:105) in /home/mysite/public_html/wp-login.php on line 478

    [24-Sep-2022 01:16:52 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/public_html/wp-content/plugins/bp-custom.php:105) in /home/mysite/public_html/wp-includes/functions.php on line 6821

    [24-Sep-2022 01:16:52 UTC] PHP Deprecated: login_headertitle is deprecated since version 5.2.0! Use login_headertext instead. Usage of the title attribute on the login logo is not recommended for accessibility reasons. Use the link text instead.
    ——————

    My XAMPP site uses the same bp-custom file, and I also temporarily disabled it on the real site just in case, which didn’t change anything regarding the reporting issue.

    • This reply was modified 6 days, 15 hours ago by buddyuser.
    • This reply was modified 6 days, 15 hours ago by buddyuser.
  • Participant
    Level: Initiated
    Posts: 11
    buddyuser on #46616

    Hi,

    1. Yes, same prefix as the others.
    2. PHP 7.4.30 (Supports 64bit values) and Database mysqli, 10.3.36-MariaDB, mysqlnd 7.4.30

    Server is Litespeed on a VPS

    I cloned the site using Duplicator plugin to a localized copy via XAMPP software that runs on Apache (PHP 7.4.29)(rather than Litespeed). The report function worked on that local copy.

  • Participant
    Level: Initiated
    Posts: 11
    buddyuser on #44876

    Thanks Brajesh, that worked perfectly 🙂

  • Participant
    Level: Initiated
    Posts: 11
    buddyuser on #44373

    Hi Brajesh,

    Thank you for the reply.

    I tried the first code but could not get it to work properly.

    
    // disable testimonials component for some users.
    add_filter( 'bp_testimonial_enabled_for_user', function( $is_enabled, $user_id ) {
    
    	if( ! current_user_can('publish_products') ) {
    		$is_enabled = false;
    }
    	return $is_enabled;
    }, 10, 2 );

    Well, I know why this doesn’t work. It disables testimonials but only for the user who is viewing a profile, not for the actual users themselves.

    What I am trying to do is only allow certain users to be able to receive testimonials/have testimonials tab in their profile.

  • Participant
    Level: Initiated
    Posts: 11
    buddyuser on #43734

    Hi Brajesh,

    Thanks for the reply, that is great to hear.

    For the free plugins, the most crucial ones were:

    Activity Plus Reloaded, Confirm Actions, Limit Groups Per User. I see these as basically utility plugins.

    Secondary ones would be:

    Featured Members, Notifications Widget (especially useful if not using a dedicated BP theme), Group Suggest Widget, Extended User Groups Widget.

    Also, MediaPress Set Profile Photo and Set Profile Cover are useful with MediaPress.