Skip to:
Content
Pages
Categories
Search
Top
Bottom

php warning: bp-activity-function


  • HDcms
    Participant

    @hdcms

    Hi,
    I have the latest versions of wordpress and buddypress/ php 7
    How to remove this error that appears many times in the logs?

    [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 734

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

  • Venutius
    Moderator

    @venutius

    Have you deactivated your other plugins and switched to 2017 to confirm it’s not a conflict?


    HDcms
    Participant

    @hdcms

    Hello,
    In production, I can not disable one by one the extensions because nothing would work

    I 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 1924


    HDcms
    Participant

    @hdcms

    Hello
    +1 please

    Hi HDcms-

    Venutius has the right idea. You’re going to have to do some troubleshooting on your server, or set up a staging/dev server and try to recreate the problem, because the error log you’ve provided isn’t enough to help me. It’s not a know problem, for sure, so it must be soemthing peculiar to your setup.

    I’d say that your MySQL server going away is a bigger concern than an illegal offset in the activity component. (And probably isn’t related to BP at all.)


    HDcms
    Participant

    @hdcms

    Hello @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 1924

    HDcms
    Participant

    @hdcms

    Hello

    [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 734

    I 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 1924

    HDcms
    Participant

    @hdcms

    Hello @dcavins o @venutius
    can you help me
    thank you


    Venutius
    Moderator

    @venutius

    I’m sure dcavins has a better eye than me but I don’t see anything that jumps out as an error. Have you got rtMedia loaded? I’d be inclined to think it’s down to your own customisatons.


    HDcms
    Participant

    @hdcms

    Hi
    Yes I use rtmedias
    … and
    ‘rtmedia_update’


    HDcms
    Participant

    @hdcms

    Hi,
    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;	
    //	}
    }

    HDcms
    Participant

    @hdcms

    Hello,
    blocked, can you help me ?
    Regards

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