Forum Replies Created
-
In reply to: php warning: bp-activity-function
Hello,
blocked, can you help me ?
RegardsIn reply to: version 2.9.5 for bug fixes!?Hello
please
ThanksIn reply to: ActivitiesHello @danbp
PHP Warning: Illegal offset type in /home…./wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 734I found where the error came from:
add_filter( 'bp_after_has_activities_parse_args', 'activites_affiche_infos' ); function activites_affiche_infos( $retval ) { // if ( bp_is_active( 'activity' ) ) { $retval['action'] = array( 'activity_comment', 'activity_update', //'created_group', //'friendship_created', 'joined_group', 'last_activity', //'new_avatar', 'new_blog_comment', 'new_blog_post', //'new_member', 'updated_profile' ); return $retval; // } }I feel that this function does not work anymore with the latest version of buddypress. If I disable it, => all works
I activate it by trying several solutions and nothing else works !!
I tried your code without success either@ +
An “old” member of your BP siteIn reply to: php warning: bp-activity-functionHi,
I feel that this function does not work anymore with the latest version of buddypress. If I disable it, => all works
I activate it by trying several solutions and nothing else works !!add_filter( 'bp_after_has_activities_parse_args', 'activites_affiche_infos' ); function activites_affiche_infos( $retval ) { // if ( bp_is_active( 'activity' ) ) { $retval['action'] = array( 'activity_comment', 'activity_update', //'created_group', //'friendship_created', 'joined_group', 'last_activity', //'new_avatar', 'new_blog_comment', 'new_blog_post', //'new_member', 'updated_profile' ); return $retval; // } }In reply to: php warning: bp-activity-functionHi
Yes I use rtmedias
… and
‘rtmedia_update’In reply to: reduce the maximum size avatar // gravatarHi
I do not understand why BP_AVATAR_ORIGINAL_MAX_FILESIZE does not work
but withit’s ok 🙂
In reply to: php warning: bp-activity-functionIn reply to: php warning: bp-activity-functionHello
[17-Feb-2018 11:37:41 UTC] PHP Warning: Illegal offset type in /home…./wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 734I found where the error came from:
add_filter( 'bp_after_has_activities_parse_args', 'activites_affiche_infos' ); function activites_affiche_infos( $retval ) { $retval['action'] = array( 'activity_comment', 'activity_update', 'created_group', 'friendship_created', //nouv relation entre membre 'joined_group', 'last_activity', 'new_avatar', 'new_blog_comment', 'new_blog_post', //'new_member', 'updated_profile', 'rtmedia_update' // ajout important sinon on perd l'affichage des médiaq ); return $retval; }IF you can tell me the mistake !?
For the other, it’s the mailster plugin
[24-Feb-2018 00:59:35 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 01:56:20 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924In reply to: reduce the maximum size avatar // gravatarhello
pleaseIn reply to: reduce the maximum size avatar // gravatarHello
+1
ThanksHi
Inactive members !!
it’s good for you!
have a database 2 or 3 times biggerIn reply to: php warning: bp-activity-functionHello @dcavins
I did it on another site. but I have more than 30 active plugins. I can not find.
What I find weird is the periodicity
I disabled the backup and mymail. Where could it come from?[24-Feb-2018 00:59:35 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 01:56:20 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 01:56:20 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 02:56:52 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 02:56:52 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 03:57:24 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 03:57:24 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 04:57:56 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 04:57:56 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 05:58:28 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 05:58:28 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 06:59:00 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 06:59:00 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 07:57:09 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 07:57:09 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 08:56:17 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 08:56:17 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 09:56:11 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/../wp-includes/wp-db.php on line 1924 [24-Feb-2018 09:56:11 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /home/../wp-includes/wp-db.php on line 1924In reply to: php warning: bp-activity-functionHello
+1 pleaseHI
+1 please<? php if ( is_user_logged_in()='178' ) : echo 'cool'; endif; ?>thanks
How to remove all members with the role subscriber registered since more than 2 years or better all members with the subscriber role who have not logged in for more than 2 years (or such date)?
In reply to: php warning: bp-activity-functionHello,
In production, I can not disable one by one the extensions because nothing would workI have other mistakes if it can give …
[18-Feb-2018 09:45:37 UTC] PHP Warning: Illegal offset type in /home…/wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 734
[18-Feb-2018 09:56:07 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /home/…/wp-includes/wp-db.php on line 1924
[18-Feb-2018 09:56:07 UTC] PHP Warning: mysqli_query(): Error reading result set’s header in /home/…/wp-includes/wp-db.php on line 1924In reply to: put a notice to top of the profile (edit photo)Hello
with the good action names, it works 🙂
Thank youHI,
I’m trying to filter the buddypress members in the list of members and display them in descending order of precedence on a numeric xprofile field (0 to 10).
Example of filter xprofile field “I search” = xprofile field “I am”I found the function that should work, but I can not do the query:
function my_bp_loop_querystring( $query_string, $object ) { if ( ! empty( $query_string ) ) { $query_string .= ‘&’; } // $query_string .= ‘per_page=2’; //works $jerecherche = xprofile_get_field_data(‘Je recherche’, $user_id, $multi_format = ‘comma’ ); $query_string .= ‘search_terms=true&per_page=2’; // <del datetime="2018-01-17T10:23:06+00:00">works</del> return $query_string; } add_action( ‘bp_legacy_theme_ajax_querystring’, ‘my_bp_loop_querystring’, 20, 2 );In reply to: deactivation wordpress editorHI
Thank you, this will help me expect to have a function that allows me to avoid adding an extra pluginHI,
I got a message from the theme author, but if you could help me or give me an example?- “The member loops uses the bp_ajax_querystring function to build member results aslo this function has a filter with you can alterate the query, the filter it’s : bp_ajax_querystring / https://codex.buddypress.org/developer/function-examples/bp_ajax_querystring/
So there should be made a custom function/s that check it’s there it’s member directory and only then to run that function and also should be builded the logic of your flow.”
Hi,
Thank you for this information but I want another solution because I’m simple but I want members in one role can edit but not members of another roleHello,
I think I understand, it’s a bit more complicated. The simplest is to explain as for a dating site.
Filter the display of the list of members is done with a single criterion.
I display the criterion “I research” of my profile = the criterion “I am” of all the other profiles
RegardsHello,
I put my search field “radio button”: “I’m looking for”
I am waiting for the display of the:
list of all the members who checked “H” if the member put “I search” = “H”
list of all members who checked “F” if the member put “I search” = “F”
Off right now, everything is mixedadd_filter( 'I'm looking for', 'my_custom_ids', 10, 2 ); function my_custom_ids( $field_name, $field_value = '' ) { ...In reply to: connection of a member of a sitHi,
I miss the value of the user_id (the function works correctly if I put $ user_id = 100) at the time of the connection of the member? Does that change something with wordpress? I test this function
add_action('wp_login', 'prov_transfert', 99); function prov_transfert( $user_login, $user ) { $user_id = bp_loggedin_user_id() ; do_action( 'arm', 2, $user_id); } } - “The member loops uses the bp_ajax_querystring function to build member results aslo this function has a filter with you can alterate the query, the filter it’s : bp_ajax_querystring / https://codex.buddypress.org/developer/function-examples/bp_ajax_querystring/