J4.x:Error setCookie()

From Joomla! Documentation

Revision as of 09:32, 1 September 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:

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


Change the cookie lifetime from 'Year' to 'Session' in the System plugin 'Language filter'.