• Resolved kochstefan

    (@kochstefan)


    Hi,

    For some time now, I have been seeing—or receiving via email—the following error message:

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 174 der Datei /var/www/vhosts/hosting116142.a2f75.netcup.net/httpdocs/wp_rhm/wp-content/plugins/sky-login-redirect/includes/class-redirect-manager.php verursacht. Fehlermeldung: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /var/www/vhosts/hosting116142.a2f75.netcup.net/httpdocs/wp_rhm/wp-content/plugins/sky-login-redirect/includes/class-redirect-manager.php:174
    Stack trace:
    #0 /var/www/vhosts/hosting116142.a2f75.netcup.net/httpdocs/wp_rhm/wp-content/plugins/sky-login-redirect/includes/class-redirect-manager.php(174): in_array(‘contributor’, ‘contributor’, true)
    #1 /var/www/vhosts/hosting116142.a2f75.netcup.net/httpdocs/wp_rhm/wp-content/plugins/sky-login-redirect/includes/class-redirect-manager.php(117): SkyLoginRedirect\RedirectManager->ruleAppliesToRole(Array, Object(WP_User))
    #2 /var/www/vhosts/hosting116142.a2f75.netcup.net/httpdocs/wp_rhm/wp-content/plugins/sky-login-redirect/includes/class-redirect-manager.php(71): SkyLoginRedirect\RedirectManager->ruleApplies(Array, Object(WP_User))
    #3 /var/www/vhosts/hosting116142.a2f75.netcup.net/httpdocs/wp_rhm/wp-content/plugins/sky-login-redirect/sky-login-redirect.php(356): SkyLoginRedirect\RedirectManager->processRedirect(‘https://intrane…’, ‘[https://intrane…]https://intrane…’, Object(WP_User))
    #4 /var/www/vhosts/hosting116142.a2f75.netcup.net/httpdocs/wp_rhm/wp-includes/class-wp-hook.php(341): SkyLoginRedirect\process_redirection(‘https://intrane…’, ‘[https://intrane…]https://intrane…’, Object(WP_User))
    #5 /var/www/vhosts/hosting116142.a2f75.netcup.net/httpdocs/wp_rhm/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘https://intrane…’, Array)
    #6 /var/www/vhosts/hosting116142.a2f75.netcup.net/httpdocs/wp_rhm/wp-login.php(1359): apply_filters(‘login_redirect’, ‘[https://intrane…]https://intrane…’, ‘[https://intrane…]https://intrane…’, Object(WP_User))
    #7 {main}
      thrown

    Can you help me?

    Regards

    Stefan

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am experiencing the same bug.

    An error of type E_ERROR was caused in line 174 of the file /public_html/wp-content/plugins/sky-login-redirect/includes/class-redirect-manager.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /public_html/wp-content/plugins/sky-login-redirect/includes/class-redirect-manager.php:174

    Plugin Author Matt Biscay

    (@skyminds)

    Hi @kochstefan and @swinggraphics

    Thank you for reporting the issue. I’ve released 4.2.1 which addresses the bug and correctly makes use of the array.

    Have a great day,
    Matt

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.