• Resolved mattaspexi

    (@mattaspexi)


    Hello,

    After updating UAM to latest version there is a fatal error on frontend:

    Fatal error: Uncaught TypeError: Argument 1 passed to UserAccessManager\Controller\Frontend\RedirectController::redirect() must be of the type array, null given, called in /home/customer/www/example.com/public_html/wp-includes/class-wp-hook.php on line 292

    For now I just changed:

    public function redirect(array $headers, object $pageParams): array

    to:

    public function redirect($headers = array(), $pageParams = null)

    but this is a temporary fix only. Please incorporate a better fix in next version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author GM_Alex

    (@gm_alex)

    2.2.14 should fix the issue.

    @gm_alex hi Alex. Version 2.2.14 is still affected. Error message:

    PHP Fatal error: Uncaught TypeError: Return value of UserAccessManager\Controller\Frontend\RedirectController::redirect() must be of the type array, null returned in /home/customer/www/example.com/public_html/wp-content/plugins/user-access-manager/src/Controller/Frontend/RedirectController.php:370

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error in frontend controller redirect() function after update’ is closed to new replies.