No Code Attached Yet bug
avatar 01Kuzma
01Kuzma
19 Apr 2023

Hi,
just upgraded to 4.3 and got major bug with the multilanguage website;
The error code: setcookie(): Expects exactly 3 arguments when argument #3 ($expires_or_options) is an array

StackTrace:

<html><body>
<!--StartFragment-->

# | Function | Location
-- | -- | --
1 | () | JROOT/libraries/src/Input/Cookie.php:102
2 | setcookie() | JROOT/libraries/src/Input/Cookie.php:102
3 | Joomla\CMS\Input\Cookie->set() | JROOT/plugins/system/languagefilter/languagefilter.php:803
4 | PlgSystemLanguageFilter->setLanguageCookie() | JROOT/plugins/system/languagefilter/languagefilter.php:481
5 | PlgSystemLanguageFilter->parseRule() | JROOT/libraries/src/Router/Router.php:384
6 | Joomla\CMS\Router\Router->processParseRules() | JROOT/libraries/src/Router/Router.php:144
7 | Joomla\CMS\Router\Router->parse() | JROOT/libraries/src/Application/SiteApplication.php:746
8 | Joomla\CMS\Application\SiteApplication->route() | JROOT/libraries/src/Application/SiteApplication.php:232
9 | Joomla\CMS\Application\SiteApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:293
10 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/includes/app.php:61
11 | require_once() | JROOT/index.php:32

<!--EndFragment-->
</body>
</html>

Downgrading the PHP version to 7.4 solves the problem. But this reappears on 8.0, 8.1, 8.2 versions

avatar 01Kuzma 01Kuzma - open - 19 Apr 2023
avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Apr 2023
avatar 01Kuzma 01Kuzma - change - 19 Apr 2023
The description was changed
avatar 01Kuzma 01Kuzma - edited - 19 Apr 2023
avatar alikon alikon - change - 19 Apr 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-04-19 08:40:28
Closed_By alikon
avatar alikon alikon - close - 19 Apr 2023
avatar alikon
alikon - comment - 19 Apr 2023

Closing as having a pull request. Please test #40414 . Thanks in advance.

avatar richard67 richard67 - change - 19 Apr 2023
Labels Added: bug
avatar richard67 richard67 - labeled - 19 Apr 2023

Add a Comment

Login with GitHub to post a comment