BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Media › Like a photo is not mention on the wall until reload page
- This topic has 12 replies, 2 contibutors, and was last updated 9 years, 1 months ago by Anonymous.
Question
September 1, 2015 at 5:34 am #45500@neoseeyouHello
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
September 1, 2015 at 5:34 am #45501@neoseeyouThank you guys for the support 😉
September 1, 2015 at 1:26 pm #45540@
AnonymousHi @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 DubeySeptember 10, 2015 at 5:15 pm #46154@neoseeyouHello 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
September 11, 2015 at 6:04 am #46167@
AnonymousHey @neoseeyou
You can send private message from my profile or send mail at [email protected]
Regards
Varun DubeySeptember 24, 2015 at 5:43 am #46992@neoseeyouHello @vapvarun , have you got any news about this issue?
October 3, 2015 at 1:00 pm #47843@
AnonymousHi @neoseeyou
sorry for delayed response
if you need quick fix you can doat /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 DubeyOctober 3, 2015 at 2:27 pm #47850@neoseeyouHello 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 );
October 5, 2015 at 6:42 am #47955@
AnonymousHi @neoseeyou
It should be line 318
you can also use search option inside the editor to find the line
RegardsOctober 5, 2015 at 7:15 am #47958@neoseeyouHello 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] );
October 11, 2015 at 12:23 am #48421@
Anonymousyes, just need to bring
$media_ids = array_filter($media_ids );
before the for loop function
Regards
VarunOctober 11, 2015 at 5:55 am #48446@neoseeyouHello 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
October 13, 2015 at 12:56 pm #48659@
AnonymousHi @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
- The question ‘Like a photo is not mention on the wall until reload page’ is closed to new replies.