Fatal error in frontend controller redirect() function after update
-
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)
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.