Fatal error on setcookie in class-mooauth-widget.php
-
In class-mooauth-widget.php there is a call to setcookie() on line 304. Since this morning (we only use our WordPress instance on weekdays), this line caused a fatal error.
By modifiying the code, I was able to resolve the issue. I replaced this line:
set_cookie('mo_oauth_sso_' . $appname . '_state', ...)With this:
set_cookie('mo_oauth_sso_' . sanitize_key($appname) . '_state', ...)I am not sure why this works (ChatGPT suggests it is an issue with the way PHP 8 handles cookies).
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.