Hi, Indeed, the registration redirects seem to work, but not the login redirects. Was it working before? Did you install any plugin that could be related?
This can happen when the redirect URL is being removed/blanked out (there could other reasons). It could be one of several plugins. Could you try debugging by adding the following logging information: function log_redirection ($url)
{
global $wp_filter;
error_log ('registered redirect actions: '. print_r ($wp_filter['login_redirect'], true));
error_log ('redirect url: '. print_r ($url, true));
return $url;
}
add_filter ('login_redirect', 'log_redirection', 100); You may need to enable, temporarily, logging, as (https://codex.wordpress.org/Debugging_in_WordPress), in wp-config.php: define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
And look for these lines in the WP log file (wp-content/debug.log)?
Hi, The cause appears to be that our plugin applies the login_redirect filters. Any other plugin could be changing the redirected URI. So, only solution is to identity where the user is redirected, and by which plugin.
Answers
Indeed, the registration redirects seem to work, but not the login redirects.
Was it working before?
Did you install any plugin that could be related?
Thanks.
Are there any plug-ins that can conflict? Please tell us the type and name of the plugin.
A plugin that modifies the redirection can cause conflicts. We do not have a list. Which other plugins are you using?
Thanks.
### Active Plugins (42) ###
BadgeOS Community Add-On: Credly – 1.2.2
BadgeOS Congratulations Modal Add-On: LearningTimes – 1.0.1
BadgeOS: LearningTimes – 1.4.7
bbPress Topic Thumbnails: Shane Gowland – 1.2
bbPress: The bbPress Community – 2.5.8
BuddyPress Reorder Tabs: BuddyBoss – 1.0.5
BuddyBoss Media: BuddyBoss – 3.0.8
BuddyBoss Wall: BuddyBoss – 1.2.3
BuddyPress Follow: Andy Peatling
r-a-y – 1.2.1
BuddyPress Global Search: BuddyBoss – 1.1.1
BuddyPress – 2.3.4
Better WordPress Recent Comments: Khang Minh – 1.2.2
Woocommerce - Request a Quote: Kiran P – 2.19
Easy Social Share Buttons for WordPress: CreoApps – 2.0.7
GD bbPress Attachments: Milan Petrovic – 2.3.1
Justified Image Grid: Firsh – 1.8
Korea SNS: Jongmyoung Kim – 1.5.0
Naver Web Syndication v2: iamgood – 1.1
Page-list: webvitaly – 5.1
Query Wrangler: Jonathan Daggerhart – 1.5.38
Quick Page/Post Redirect Plugin: Don Fischer – 5.1.5
Search Exclude: Roman Pronskiy – 1.2.2
Simple Ajax Insert Comments: Max López – 1.7.2
Simple Page Sidebars: Cedaro – 1.2.0
Ultimate Posts Widget: Boston Dell-Vandenberg – 2.0.5
Unfiltered MU: Automattic – 1.3.1
Visual Composer Extensions All In One: Sike – 3.4.1.2
WooCommerce BuddyPress Integration: WC4BP Integration Dev Team – 2.2.3
WooCommerce Category Accordion.: TechieResource – 1.0
Woocommerce Product Payments: Dreamfox Media – 1.2.4
Woocommerce Quick Buy: Varun Sridharan – 0.16
WooCommerce: WooThemes – 2.4.8
WooSidebars: WooThemes – 1.4.3
WP GIF Player: Stefanie Stoppel @ psmedia GmbH – 0.8
WP Links: Jorge A. Gonzalez – 1.9.6.4
WP-Mail-SMTP: Callum Macdonald – 0.9.5
WP-Optimize: Ruhani Rabin – 1.8.9.10
WP-Polls: Lester 'GaMerZ' Chan – 2.70
WP Users Media: Damir Calusic – 3.0.0
MailPoet Newsletters Premium: MailPoet – 2.6.17
MailPoet Newsletters: MailPoet – 2.6.19
Youtube Channel Gallery: Javier Gómez Pose – 2.4
Agreeable: kraftpress – 1.4
Social Login: Claude Schlesser – 5.0
WP-Mail-SMTP: Callum Macdonald – 0.9.5
WP-Optimize: Ruhani Rabin – 1.8.9.10
WP Rocket: WP Rocket – 2.6.6
WooThemes Helper: WooThemes – 1.5.4
WPFront User Role Editor Business Pro: Syam Mohan – 2.12.1
One Stop Social Login: SAWeb – 1.3.6
Gravity Forms: rocketgenius – 1.9.14.5
myCRED: Gabriel S Merovingi – 1.6.6
Yoast SEO: Team Yoast – 2.3.5
WordPress Access Control: Brandon Wamboldt – 4.0.13
XYZist-3D Viewer: Vhan Kim – 0.1
WPBakery Visual Composer: Michael M - WPBakery.com – 4.8.0.1
### Settings ###
Force SSL: –
Currency: KRW (₩)
Currency Position: right_space
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 0
### Theme ###
Name: Social Learner
Version: 1.0.5
Author URL: http://buddyboss.com/
Child Theme: ✔
Parent Theme Name: Boss.
Parent Theme Version: 2.0.2
Parent Theme Author URL: http://www.buddyboss.com
WooCommerce Support: ✔
This can happen when the redirect URL is being removed/blanked out (there could other reasons). It could be one of several plugins.
Could you try debugging by adding the following logging information:
function log_redirection ($url) { global $wp_filter; error_log ('registered redirect actions: '. print_r ($wp_filter['login_redirect'], true)); error_log ('redirect url: '. print_r ($url, true)); return $url; } add_filter ('login_redirect', 'log_redirection', 100);
You may need to enable, temporarily, logging, as (https://codex.wordpress.org/Debugging_in_WordPress), in wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
And look for these lines in the WP log file (wp-content/debug.log)?
Thanks.
but I cannot found..
The cause appears to be that our plugin applies the login_redirect filters.
Any other plugin could be changing the redirected URI.
So, only solution is to identity where the user is redirected, and by which plugin.