Error setCookie()

From Joomla! Documentation

Revision as of 10:32, 1 September 2023 by Max123kl (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
English • ‎français

Errors reported[edit]

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[edit]

General Information

This pertains only to Joomla! version(s): 4.3.0

What is the cause[edit]

Issue reported in sites where the cookie lifetime setting is set to 'Year'. The default cookie setting is 'Session'.

How to fix[edit]

A fix is pending, see Workaround


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