I have a problem with Login/Logout Redirect

Hi,

I have a problem with Login Redirect as the redirection is not working and the user keeps landing on the login page.

It feels like it might be related to a similar cause as this issue I notified in this other post: https://premium.wpmudev.org/forums/topic/protected-content-redirection-not-working#post-1056371

The website is running on NGINX + HHVM.

Server logs shows this errors when logging out:

2016/04/12 17:29:12 [error] 521#0: *2524 FastCGI sent in stderr: "PHP message: PHP Strict Standards:  Redefining already defined constructor for class Logout_Redirect in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php on line 44" while reading response header from upstream, client: 109.153.105.47, server: projecttoolshq.com, request: "GET /wp-login.php?action=logout&_wpnonce=448035602f HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.projecttoolshq.com", referrer: "http://www.projecttoolshq.com/"
2016/04/12 17:29:12 [error] 521#0: *2524 FastCGI sent in stderr: "PHP message: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php on line 203" while reading upstream, client: 109.153.105.47, server: projecttoolshq.com, request: "GET /wp-login.php?action=logout&_wpnonce=448035602f HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.projecttoolshq.com", referrer: "http://www.projecttoolshq.com/"
2016/04/12 17:29:12 [error] 521#0: *2524 FastCGI sent in stderr: "PHP message: PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/membership/app/controller/class-ms-controller-plugin.php on line 97
PHP message: PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method Genesis_Tabs::init() should not be called statically in /var/www/projecttoolshq.com/htdocs/wp-includes/plugin.php on line 525
PHP message: PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method Genesis_Tabs::register_widget() should not be called statically in /var/www/projecttoolshq.com/htdocs/wp-includes/plugin.php on line 525
PHP message: PHP Notice:  Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
PHP message: PHP Notice:  Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
PHP message: PHP Notice:  Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
PHP message: PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-login.php on line 387
PHP message: PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-login.php on line 400

This is generated when browsing the login page:

2016/04/12 17:31:12 [error] 521#0: *2539 FastCGI sent in stderr: "PHP message: PHP Strict Standards:  Redefining already defined constructor for class Logout_Redirect in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php on line 44
PHP message: PHP Deprecated:  Assigning the return value of new by reference is deprecated in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php on line 203
PHP message: PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method Genesis_Tabs::init() should not be called statically in /var/www/projecttoolshq.com/htdocs/wp-includes/plugin.php on line 525
PHP message: PHP Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method Genesis_Tabs::register_widget() should not be called statically in /var/www/projecttoolshq.com/htdocs/wp-includes/plugin.php on line 525
PHP message: PHP Notice:  Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
PHP message: PHP Notice:  Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
PHP message: PHP Notice:  Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177" while reading response header from upstream, client: 109.153.105.47, server: projecttoolshq.com, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.projecttoolshq.com", referrer: "http://www.projecttoolshq.com/"

Thanks

  • Rupok

    Hi Mirko

    Hope you had a wonderful day.

    redirection is not working and the user keeps landing on the login page

    I could tell you better about the issue if I could see it live, check your current configuration and make some tests on your site. Would you mind allowing Support Access so we can have a closer look at this?

    To enable support access you can follow this guide here:
    https://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    Have a nice day. Cheers!

  • Mirko

    After activating debug I got this errors after logout:

    Strict Standards: Redefining already defined constructor for class Logout_Redirect in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php on line 44
    
    Deprecated: Assigning the return value of new by reference is deprecated in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php on line 203
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/membership/app/controller/class-ms-controller-plugin.php on line 97
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Genesis_Tabs::init() should not be called statically in /var/www/projecttoolshq.com/htdocs/wp-includes/plugin.php on line 525
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Genesis_Tabs::register_widget() should not be called statically in /var/www/projecttoolshq.com/htdocs/wp-includes/plugin.php on line 525
    
    Notice: Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
    
    Notice: Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
    
    Notice: Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-login.php on line 387
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-login.php on line 400
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 977
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 978
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 979
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 980
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 981
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 982
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 985
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 986
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 987
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 988
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 991
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 992
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 993
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-includes/pluggable.php on line 994
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/projecttoolshq.com/htdocs/wp-content/plugins/logout-redirect/logout-redirect.php:44) in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/nginx-helper/nginx-helper.php on line 374

    Mirko

  • Rupok

    Hi Mirko

    Hope you had a wonderful day.

    Thanks for granting Support Access. I created a test user for testing this login redirection thing. Then went to your login page, and found the following errors:

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Genesis_Tabs::init() should not be called statically in /var/www/projecttoolshq.com/htdocs/wp-includes/plugin.php on line 525
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Genesis_Tabs::register_widget() should not be called statically in /var/www/projecttoolshq.com/htdocs/wp-includes/plugin.php on line 525
    
    Notice: Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
    
    Notice: Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177
    
    Notice: Undefined index: default in /var/www/projecttoolshq.com/htdocs/wp-content/plugins/genesis-super-customizer/public/class-gsc-base.php on line 177

    I believe, this is being caused by some other plugin. Can you please do a plugin conflict test just to make sure no other plugin is causing this? To know more about plugin conflict test, you can check this article: https://premium.wpmudev.org/manuals/using-wpmu-dev/getting-support/

    And as these are being shown on front-end, this is not really looking good. Can you please open your wp-config.php file from your root directory and check if the following line is there?
    define( 'WP_DEBUG_DISPLAY', true );

    If you find this line, can you change it to the following?
    define( 'WP_DEBUG_DISPLAY', false );

    And about your main login redirection issue, I could not regenerate this on your site. I entered my credentials and I was redirected to the account page. Please check the attached screenshot for reference. Can you please check and confirm?

    Have a nice day. Cheers!

  • Ash

    Hello Mirko

    I am sorry for the delay in the email.

    I have just checked your site and it seems the redirect works fine. I have logged in from front end, and it redirected me back to account page.

    Would you please send me a video screencast of how it's going for you? What happens for you instead of redirection? Please make sure the site url appears when you make the video screencast.

    Have an awesome day!

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.