After posting a question, the DW Question Answer plugin is redirecting to a blank page instead of Questions page. How can I fix this and why is this happening?
I love this plugin so I really hope I can fix this issue!
Hi,
To resolve this issue, you can log in to Dashboard > Settings > BuddyPress, then enable Site Tracking in the BuddyPress settings.
If you still face there issue, you can send me username & password of your site (via private answer) for further checking.
Hope this helps !
Adding site tracking works helped to overcome the blank page on redirect if I don’t add the following code:
add_action( ‘template_redirect’, ‘kleo_redirect_author_archive_to_profile’ );
function kleo_redirect_author_archive_to_profile() {
if(is_author()){
$user_id = get_query_var( ‘author’ );
wp_redirect( bp_core_get_user_domain( $user_id ) );
}
}
Once I add that code my site breaks and all i see is a blank page. This was working previously but i updated BuddyPress 2 days ago and it seems the redirect code to userprofile page is conflicting with somthing in new buddypress. This is just a guess.
We will discuss about it.
Please login or Register to submit your answer