BuddyBoss Home – Web Support Forums Plugins BuddyBoss Media Like a photo is not mention on the wall until reload page

Viewing 13 posts - 1 through 13 (of 13 total)
  • Question

    #45500
    @neoseeyou

    Hello

    If i display a picture and press like button, the like will be count but not display right away on the wall until i reload the page. It’s not ajax

    Is it possible to find a solution for this? Because lots of users will not understand and think the like button is kind of buggy

    Answers

    #45501
    @neoseeyou

    Thank you guys for the support 😉

    #45540

    Anonymous
    @

    Hi @neoseeyou, Ajax is working on it, and it does not need to reload.
    Might be some additional plugin is creating some conflict , please try to deactivate few plugin to find the possible conflict.
    Please paste your active plugin list , i will try to replicate it to find the issue.
    Regards
    Varun Dubey

    #46154
    @neoseeyou

    Hello Varun, sorry for late answer.

    The site will be launch in 5 days.

    I desactivated all plugins except Buddyboss media, wall and buddypress and no change.

    I have lots of plugins for this project (49 plugins).

    What i can do is give you the website adress and admin account to have a look ?

    I have this error when checking debug bar

    Undefined offset: 1 - wp-content/plugins/buddyboss-media/includes/types/photo-hooks.php:318
    
    BuddyBoss_Media_Photo_Hooks->bp_get_activity_content_body()
    apply_filters_ref_array('bp_get_activity_content_body')
    bp_get_activity_content_body()
    bp_activity_content_body()
    load_template('~/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/entry.php')
    bp_locate_template()
    bp_get_template_part()
    load_template('~/wp-content/themes/twentythirteen-child/buddypress/activity/activity-loop.php')
    bp_locate_template()
    bp_get_template_part()
    load_template('~/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/activity.php')
    bp_locate_template()
    bp_get_template_part()
    load_template('~/wp-content/themes/twentythirteen-child/buddypress/members/single/home.php')
    bp_locate_template()
    bp_get_template_part()
    bp_buffer_template_part()
    BP_Members_Theme_Compat->single_dummy_content()
    apply_filters('bp_replace_the_content')
    bp_replace_the_content()
    apply_filters('the_content')
    the_content()

    Give me an email where i can send you ID and password

    Thanks

    #46167

    Anonymous
    @

    Hey @neoseeyou
    You can send private message from my profile or send mail at [email protected]
    Regards
    Varun Dubey

    #46992
    @neoseeyou

    Hello @vapvarun , have you got any news about this issue?

    #47843

    Anonymous
    @

    Hi @neoseeyou
    sorry for delayed response
    if you need quick fix you can do

    at /plugins/buddyboss-media/includes/types/photo-hooks.php on line 318

    replace

    
    foreach( $media_ids as $media_id ) { 
    $media_ids = array_filter($media_ids );
    

    with

    
    $media_ids = array_filter($media_ids );
    foreach( $media_ids as $media_id ) {
    

    Else please wait for our next update
    It is fixed in our development version.

    Regards
    Varun Dubey

    #47850
    @neoseeyou

    Hello Varun and thank you for your solution, however could you tell me which line exactly to modify into photo-hooks.php because i don’t find

    foreach( $media_ids as $media_id ) { 
    $media_ids = array_filter($media_ids );
    #47955

    Anonymous
    @

    Hi @neoseeyou
    It should be line 318
    you can also use search option inside the editor to find the line
    Regards

    #47958
    @neoseeyou

    Hello Varun

    Of course i use the search function 😉 That’s why i wanted to be sure about the exact line

    Line 318:

    foreach( $media_ids as $media_id ){$image = wp_get_attachment_image_src( $media_id, $filesizes[$img_counter] );

    #48421

    Anonymous
    @

    yes, just need to bring

    
    $media_ids = array_filter($media_ids );
    

    before the for loop function
    Regards
    Varun

    #48446
    @neoseeyou

    Hello and thankyou

    Ok so i put this code before the foreach like this (line 318)

    $media_ids = array_filter($media_ids );
    foreach( $media_ids as $media_id ){
    $image = wp_get_attachment_image_src( $media_id, $filesizes[$img_counter] );
    ...........

    But it doesn’t solve my problem

    #48659

    Anonymous
    @

    Hi @neoseeyou
    as per your error log, that was the only issue which was generated from media plugin rest of issues are related to your template files for Buddypress where you have used twentythirteen as Parent theme
    Regards

Viewing 13 posts - 1 through 13 (of 13 total)
  • The question ‘Like a photo is not mention on the wall until reload page’ is closed to new replies.