[resolved] Callback error when defining BP_GROUPS_DEFAULT_EXTENSION in bp-custom.php
I use this code in my bp-custom.php to change the default view in groups to the ‘forum’ tab:
define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘forum’ );
But, after using this I got this error repeating over and over again in my error log:
[20-Aug-2012 18:56:13] PHP Warning: call_user_func_array(): First argument is expected to be a valid callback, ‘redirect_to_forum’ was given in /home2/public_html/wp-includes/plugin.php on line 484
This was initially from my post at http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/changing-group-tab-display-defaults/?topic_page=4&num=15&_wpnonce=dc97c1ad94#post-136471
I decided to create a new topic so I don’t disturb the thread.
Has anyone experienced this before?
Sorry, this was caused by my silly mistake of forgetting to delete
add_action( ‘wp’, ‘redirect_to_forum’ );
After deciding to use the bp-custom.php define instead of the redirect code I posted at the above topic.
You must be logged in to reply to this topic.