J4.x:Error setCookie()
From Joomla! Documentation
Errors reported
When a language filter is used, the page fails with the error: setcookie(): Expects exactly 3 arguments when argument #3 ($expires_or_options) is an array
Versions affected
General Information
This pertains only to Joomla! version(s): 4.3.0
What is the cause
Issue reported in sites where the cookie lifetime setting is set to 'Year'. The default cookie setting is 'Session'.
How to fix
A fix is pending, see Workaround
Workaround
Change the cookie lifetime from 'Year' to 'Session' in the System plugin 'Language filter'.