Hi, it would be a nice addiction if the redirect can be excluded for certain user roles (eg. administrators).
]]>Can you help with this?
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.6.2
Active theme: Pro (version 6.5.6)
Current plugin: WP Login and Logout Redirect (version 2.0)
PHP version 8.0.30
Error Details
=============
An error of type E_ERROR was caused in line 64 of the file /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-content/plugins/wp-login-and-logout-redirect/includes/login-user-time/login-user-time.php. Error message: Uncaught Error: Call to undefined function get_current_screen() in /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-content/plugins/wp-login-and-logout-redirect/includes/login-user-time/login-user-time.php:64
Stack trace:
#0 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/class-wp-hook.php(324): wplalr_sort_user_last_login_column()
#1 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
#3 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/class-wp-user-query.php(283): do_action_ref_array()
#4 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/class-wp-user-query.php(79): WP_User_Query->prepare_query()
#5 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/user.php(794): WP_User_Query->__construct()
#6 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-content/plugins/ithemes-security-pro/core/lib/class-itsec-lib-canonical-roles.php(264): get_users()
#7 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-content/plugins/ithemes-security-pro/pro/user-security-check/utility.php(42): ITSEC_Lib_Canonical_Roles::get_users_with_canonical_role()
#8 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-content/plugins/ithemes-security-pro/pro/user-security-check/class-itsec-user-security-check.php(24): ITSEC_User_Security_Check_Utility::get_inactive_users()
#9 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/class-wp-hook.php(326): ITSEC_User_Security_Check->check_inactive_accounts()
#10 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#11 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-content/plugins/ithemes-security-pro/core/modules/notification-center/class-notification-center.php(845): apply_filters()
#12 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-content/plugins/ithemes-security-pro/core/modules/notification-center/class-notification-center.php(795): ITSEC_Notification_Center->send_scheduled_notification()
#13 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-content/plugins/ithemes-security-pro/core/modules/notification-center/class-notification-center.php(766): ITSEC_Notification_Center->send_scheduled_notifications()
#14 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-content/plugins/ithemes-security-pro/core/modules/notification-center/class-notification-center.php(722): ITSEC_Notification_Center->check_notification_schedule_accurate()
#15 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/class-wp-hook.php(324): ITSEC_Notification_Center->check_notification_schedule_fast()
#16 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#17 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#18 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-settings.php(700): do_action()
#19 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-config.php(94): require_once('/home/1092021.c...')
#20 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-load.php(50): require_once('/home/1092021.c...')
#21 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-admin/admin.php(34): require_once('/home/1092021.c...')
#22 /home/1092021.cloudwaysapps.com/jvexgsgkxx/public_html/wp-admin/index.php(10): require_once('/home/1092021.c...')
#23 {main}
thrown
]]>
This is an old error that was fixed but now seems to be back with v2?
The solution (albeit needs their code modified) is:
This can be resolved by adding before that line this:require_once(ABSPATH . 'wp-admin/includes/screen.php');
Add this to the function e.g.
function wplalr_sort_user_last_login_column( $query ) {
if( !is_admin() ) {
return $query;
}
require_once(ABSPATH . 'wp-admin/includes/screen.php');
$screen = get_current_screen();
if( isset( $screen->id ) && $screen->id !== 'users' ) {
return $query;
}
if( isset( $_GET[ 'orderby' ] ) && $_GET[ 'orderby' ] == 'wplalr_last_login' ) {
$query->query_vars['meta_key'] = 'wplalr_last_login';
$query->query_vars['orderby'] = 'meta_value';
}
return $query;
}
Not ideal but will fix until they do.
]]>after activating it no longer enters the site, when clicking on enter the panel it occurs as if it enters and returns to the login screen with url
wp-login.php?redirect_to=https%3A%2F%2Fmysiteeg.com%2Fwp-admin%2F&reauth=1
I renamed the plugin folder and nothing changed
]]>Hello Support Team,
I am writing to report an issue I am experiencing with the WP Login and Logout Redirect plugin. I have received multiple automated emails from WordPress indicating a fatal error related to this plugin. However, upon thorough investigation, I have not identified any visible issues on my website, and the plugin’s functionality appears to be intact.
Here are the details of the error as reported by WordPress:
Error Details
An error of type E_ERROR was caused in line 64 of the file /www/wp-content/plugins/wp-login-and-logout-redirect/includes/login-user-time/login-user-time.php. Error message: Uncaught Error: Call to undefined function get_current_screen() in /www/wp-content/plugins/wp-login-and-logout-redirect/includes/login-user-time/login-user-time.php:64
Stack trace: 0 /wordpress/wp-includes/class-wp-hook.php(324): wplalr_sort_user_last_login_column(Object(WP_User_Query)) 1 /wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 2 /wordpress/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 3 /wordpress/wp-includes/class-wp-user-query.php(281): do_action_ref_array(‘pre_get_users’, Array) 4 /wordpress/wp-includes/class-wp-user-query.php(79): WP_User_Query->prepare_query(Array) 5 /wordpress/wp-includes/user.php(776): WP_User_Query->__construct(Array) 6 /www/wp-content/plugins/ithemes-security-pro/core/modules/notification-center/validator.php(302): get_users(Array) 7 /www/wp-content/plugins/ithemes-security-pro/core/modules/notification-center/validator.php(28): ITSEC_Notification_Center_Validator->get_available_admin_users_and_roles() 8 /www/wp-content/pl
Website and Environment Details
Steps Taken
Despite the normal functionality, the error notifications persist, suggesting a potential underlying issue.
I would appreciate your assistance in diagnosing and resolving this issue to prevent further error notifications. If additional information or access to the website is required, please let me know.
Thank you for your support.
Best regards,
Devmountaintop
]]>for last login in frontend ? very thanks to much for plugin. https://www.publicmusic.it/wp-content/uploads/2023/10/Schermata-2023-10-31-alle-21.03.29.png
]]>When my users logout, they are asked whether they are sure they want to log out. Can you make that optional in the next version?
]]>Been tweaking a lot of stuff on my localhost environment. when I go to the users page I get warning.?Warning: Undefined variable $wplalr_output in D:\wamp64\www\coppermill\wp-content\plugins\wp-login-and-logout-redirect\includes\login-user-time\login-user-time.php on line?39?I can provide a screen shot if needed. but not sure how.
]]>Good Day
On the Users Page on WordPress the following Error is displayed:
Warning: Undefined variable $wplalr_output in /usr/www/users/xxxx/wp-content/plugins/wp-login-and-logout-redirect/includes/login-user-time/login-user-time.php
Would you kindly assist?
]]>hello
I want to activate your plugin on my website so that the LogOff redirects it to the home page. But, when I activate it, my Login form doesn’t work.
Try to login with any username and password to see that it does nothing.
]]>I have config for after logging it is oki but the process when I click logout in oder to change account the website is loading long time, I have to turn off website and open it again.
thanks
]]>Hi,
I've been using the plugin for a while, it works great.
But I would like the color of the text to change depending on the state, for example login green and logout red, I don't know how to do it.
I can change the color in css but login and logout have the same color.
Can you help me?
Thanks in advance
]]>
Hi
After upgrading to WordPress 6, we get a critical error once logged into admin and you try yo select anything.
]]>Notice: Undefined variable: wplalr_output in /
It says it has an issue on line 39. Will the plugin get an update anytime soon?