Basic troubleshooting – change theme to bp-default theme. It would also help if you give additional info like WP/BP versions, issue happening on new install or updated install, etc.
[Part 2]
Create a new empty file and name it sidebar-buddypress.php
Open up empty sidebar-buddypress.php and add the following
`
jQuery(document).ready( function() {
if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
jQuery(‘div#blog-details’).toggle();
jQuery( ‘input#signup_with_blog’ ).click( function() {
jQuery(‘div#blog-details’).fadeOut().toggle();
});
});
`
Save file.
Upload two new files created to amplifier theme folder in server.
First of all, if you’ve made any revisions in any of BP template files transferred to your amplifier theme folder in your server, I recommend that you delete the 6 BP template folders and re-run Appearance > BP Compatibility so that new and clean BP template files will be transferred to your amplier theme folder.
Scan of source code reveals that you can use the second method to make your theme compatible with BuddyPress i.e. only create header-buddypress.php and sidebar-buddypress.php files, instead of revising 16 BP template files. With this set-up however, you can only have a right sidebar as I have deleted the option in the template so that layout won’t break.
Make a copy of your theme’s header.php and save it as header-buddypress.php
Open up header-buddypress.php and add the following at the very bottom of the file below all other code
`
You’re welcome
I recommend that you download or unzip another copy of your theme and copy the page.php file from there and upload to your theme folder in server. Double check that your page.php file has the `
hey thamk you for your reply. i replaced the codes above with the codes you gave me. but now i get this error message when i try to reply. what does it means?
Parse error: syntax error, unexpected ‘/htdocs/wp-content/themes/mytheme/activity/reply.php on line 16
If you are using SEO as a metric against using an entirely dynamic system like BuddyPress i suggest you re-consider that metric.
However the issue you have in regards to the 404 is a known issue and the code above will fix activity stream commenting. @kalengi submitted this fix for a “without javascript use case”.
To fix commenting running with the above example do the following. (Just re-iterating @kalengi here)
In the folder /wp-content/themes/your-theme/activity/
Create the file reply.php
`<?php
global $bp;
if(!is_user_logged_in()) :
bp_core_add_message( __(‘You must be logged in to post a comment’, ‘buddypress’ ), ‘error’);
else :
if(!check_admin_referer(‘new_activity_comment’, ‘_wpnonce_new_activity_comment’)) :
bp_core_add_message(__(‘There was an error posting that reply, please try again.’, ‘buddypress’ ), ‘error’);
else :
// This line should match up with your form field names in entry.php
$activity_id = apply_filters(‘bp_activity_post_comment_activity_id’, _POST);
// This line should match up with your form field names in entry.php
$content = apply_filters(‘bp_activity_post_comment_content’, _POST);
$comment_id = bp_activity_new_comment(array(
‘content’ => $content,
‘activity_id’ => $activity_id,
‘parent_id’ => $parent_id));
if(empty($content)) :
bp_core_add_message(__(‘Please add a comment.’, ‘buddypress’ ), ‘error’);
bp_core_redirect(wp_get_referer() . ‘#ac-form-‘ . $activity_id);
endif;
if(empty($comment_id)) :
bp_core_add_message(__(‘There was an error posting that reply, please try again.’, ‘buddypress’ ), ‘error’);
bp_core_redirect(wp_get_referer() . ‘#ac-form-‘ . $activity_id);
else :
bp_core_add_message(__(‘Comment posted successfully’, ‘buddypress’));
bp_core_redirect(wp_get_referer() . ‘#ac-form-‘ . $activity_id);
endif;
endif;
endif;`
Within that file you should have code that resembles the following. (If you don’t know how to alter accordingly, you need to further assistance.
/wp-content/themes/your-theme/activity/reply.php
Then in /wp-content/themes/your-theme/functions.php
Add this code.
`function bp_activity_action_add_activity_comment()
{
global $bp;
// Not viewing activity or action is not delete
if(!bp_is_activity_component() || !bp_is_current_action(‘reply’)) :
return false;
endif;
locate_template(array(‘activity/reply.php’), true);
bp_core_redirect(wp_get_referer());
}
add_action(‘bp_actions’, ‘bp_activity_action_add_activity_comment’);`
If you then want to add AJAX to this code you could use jQuery and listen for the form submission, onClick or onSubmit.
You could then run the jQuery AJAX method with GET as the type and the data would be the form fields from the form submitted.
jQuery will then return for you the return values within reply.php
Short of writing it specifically for you, that’s what you need.
Just reverted to the buddypress default theme and everything is working as it should.
So something must be breaking the system in my theme.
How am I able to debug the theme?
Thanks Paul, yes I created it myself.
I followed the convert your theme instructions and everything else appears to be working, expect my newly registered users arent getting the activation email.
bp_member_last_active() is only used in the members directory / member’s friend pages. It’s not in the default theme’s activity stream. I assume therefore you’re running a custom theme, which we’ll need to adjust. Did you create it yourself, or download it from somewhere? If the latter, hopefully the vendor offers support.
I’ve done:
permalink resave
uninstall and reinstall
deactivated plugins
used buddypress theme
optimized db
dropped unneeded tables
verified rewrite module – verified Options FollowSymLinks and AllowOveride All
I can’t remember the other things from a few other forum topics, I’m brain damaged by this lol.
Sorry we got off on the wrong foot, I really do appreciate the help. I would gladly give you admin login if taking a inside look would help.
hi people, ihave the same problems, but i dont know with ajax enabled or without. i can’t reply nor favourite something. i can post only. i get 404 page for this kind of stuff. i’m not advanced and i have bpress for a while but never tried ro reply or favorite something. i just noticed this errors. now i have a lot sites indexed, if i would deactivate buddypress i would have a lot 404 pages and this is suboptimal for google. i used the codes and created reply.php under my themes activity section. i also put the code you gave me in the funtcions.php section in my theme folder. should i put this code on the main function.php or the one in my theme? or is this a solution for ajax issues only?now it redirects to the activity page when i reply but i don’t see any replies. i think it is a general issue and not only ajax for me. can you please help me out. i can not code, so please tell me in a beginner language? i also can not favorite something.
Beer! Most definitely!
You’re right about the template/theme version of the code. It looks a lot friendlier than the core version 
Pleasure to have helped!
@chris I have already deactivated plugins, used default theme, and gone through countless posts on here trying fixes, including the permalink saving.
Also referring to your comment on my quote, …thats your problem……that’s precisely the garbage I’ve been seeing here that makes want to get rid of buddypress….I mean did you really need to quote my frustration. Thanks for the very helpful attitude.
@guap yes I have tried those things…thanks for trying to help
did you add?:
add_action( ‘wp_print_styles’, ‘bp_dtheme_enqueue_styles’ );
Ah! Now we are getting somewhere.
Now I’m getting…
// Add main CSS
Warning: Division by zero in /home/cornerst/public_html/wp-content/themes/cornerstone/functions.php on line 7
`<?php
if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
function bp_dtheme_enqueue_styles() {}
endif;
wp_enqueue_style( ‘cornerstone’, get_stylesheet_directory_uri() . ‘/style.css’, array(), $version );`
Googled it and sounds like it has something to do with variable declaration, but I haven’t changed any variables in the main code…
Thanks for your help!
@DJpaul it is hooked into wordpress’ function, so yeah, nothing was missed (…i think)
lol
I was just curious as to why it exists in the first place as i was looking through the bp default theme and noticed it in the header.php file. is it just an old function from the golden days, or should buddypress themes use that function instead of get_bloginfo?
Hmm.. got this error:
// Add main CSS if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) : function bp_dtheme_enqueue_styles() {} endif; wp_enqueue_style( ‘cornerstone’, get_stylesheet_directory_uri() . ‘/style.css’, array(), $version );
Warning: Cannot modify header information – headers already sent by (output started at /home/cornerst/public_html/wp-content/themes/cornerstone/functions.php:6) in /home/cornerst/public_html/wp-includes/pluggable.php on line 866
add this in your function.php
// Add main CSS
if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
function bp_dtheme_enqueue_styles() {}
endif;
wp_enqueue_style( ‘your-child-theme-name-main’, get_stylesheet_directory_uri() . ‘/style.css’, array(), $version );
I’ve verified that the BP files on our BlueHost server are in agreement with the table published following step 5 of the activation wizard outline.
Given this fact, do you suppose I might have a good BP install and simply need to work through the Genesis Child Theme tempate issues to get a good presentation outcome for BP?
Genesis Connect claims to make changes in the way log ins are handled and reports in the Genesis Connect support forum as follows:
**************Quote
Actually, GC *does* offer extra functionality, in addition to the required templates I mentioned in the other thread.
Custom registration llink to stop spammers, support for Simple Menus and Simple Sidebars, so you can have different menus and/or sidebars on the BuddyPress pages, and showing whether the user is logged in or not.
I’ve attached an image of the Settings page for GC.
If you do try out the BP template pack, be aware it physically places files and folders in your child theme. They *must* be removed before you use GenesisConnect, becasue they will override the plugin. ************* End of quote
In my case,support at StudioPress believes that a re-install may not be required.
`http://www.studiopress.com/support/showthread.php?t=89578&highlight=forum%3A+genesis+connect`
Thanks for your further review. I’ll appreciate any further thoughts you might offer.
Mike
Great work, the theme goes well with the overall nature of the site! I’m just about 30 minutes away from the Smoky Mountains!
I’m getting a warning error when going to any page other then the homepage.
Warning: Cannot modify header information – headers already sent by (output started at /websites/123reg/LinuxPackage23/ga/me/rf/gamerfold.co.uk/public_html/gamerfold/wp-content/themes/bp-columns/members/index.php:12) in /websites/123reg/LinuxPackage23/ga/me/rf/gamerfold.co.uk/public_html/gamerfold/wp-includes/pluggable.php on line 866
Dude, thank you thank you! This is ace.
Followed your train of thought to the actions and methods involved. Applied the filters as advised in core.
`global $bp;
if(!is_user_logged_in()) :
bp_core_add_message( __(‘You must be logged in to post a comment’, ‘buddypress’ ), ‘error’);
else :
if(!check_admin_referer(‘new_activity_comment’, ‘_wpnonce_new_activity_comment’)) :
bp_core_add_message(__(‘There was an error posting that reply, please try again.’, ‘buddypress’ ), ‘error’);
else :
$activity_id = apply_filters(‘bp_activity_post_comment_activity_id’, _POST);
$content = apply_filters(‘bp_activity_post_comment_content’, _POST);
$comment_id = bp_activity_new_comment(array(
‘content’ => $content,
‘activity_id’ => $activity_id,
‘parent_id’ => $parent_id));
if(empty($content)) :
bp_core_add_message(__(‘Please add a comment.’, ‘buddypress’ ), ‘error’);
bp_core_redirect(wp_get_referer() . ‘#ac-form-‘ . $activity_id);
endif;
if(empty($comment_id)) :
bp_core_add_message(__(‘There was an error posting that reply, please try again.’, ‘buddypress’ ), ‘error’);
bp_core_redirect(wp_get_referer() . ‘#ac-form-‘ . $activity_id);
else :
bp_core_add_message(__(‘Comment posted successfully’, ‘buddypress’));
bp_core_redirect(wp_get_referer() . ‘#ac-form-‘ . $activity_id);
endif;
endif;
endif;`
As this is a theme edit and not core, decided to change the syntax style also. Probably grind against those who work with themes but wouldn’t say my style is ugly.
Thanks a lot man, this is really good.
Can I buy you a beer?
hi,
I’m not using the default theme and still experience the same problem. Here is the registration link and it just goes to the home page.
When I download another copy of the BP I don’t see a registration folder, however I do see an activity folder but nothing in there regarding registration.
How can I resolve this?
Second part:
1. Create the file theme/activity/reply.php and put in the following code:
global $bp;
// Check the nonce
check_admin_referer( 'new_activity_comment', '_wpnonce_new_activity_comment' );
if ( !is_user_logged_in() ) {
bp_core_add_message( __( 'You must be logged in to post a comment', 'buddypress' ), 'error' );
}
else {
if ( empty( _POST ) ) {
bp_core_add_message( __( 'You left out the comment.', 'buddypress' ), 'error' );
}
else {
if ( empty( _POST ) || !is_numeric( _POST ) ) {
bp_core_add_message( __( 'There was an error posting that reply, please try again.', 'buddypress' ), 'error' );
}
else {
$comment_id = bp_activity_new_comment( array(
'activity_id' => _POST,
'content' => _POST,
'parent_id' => _POST
) );
if ( !$comment_id ) {
bp_core_add_message( __( 'There was an error posting that reply, please try again.', 'buddypress' ), 'error' );
}
else {
bp_core_add_message( __( 'Comment posted successfully', 'buddypress' ) );
}
}
}
}
2. In functions.php, add the function:
function bp_activity_action_add_activity_comment( ) {
global $bp;
// Not viewing activity or action is not delete
if ( !bp_is_activity_component() || !bp_is_current_action( 'reply' ) )
return false;
locate_template( array( 'activity/reply.php' ), true );
bp_core_redirect( wp_get_referer() );
}
add_action( 'bp_actions', 'bp_activity_action_add_activity_comment' );