after upgrading to Joomla 4.2 in a client's project we do get the following error message while using the frontend login form:
Argument 1 passed to Joomla\Component\Users\Site\Model\LoginModel::getMenuLanguage() must be of the type int, string given, called in <ROOT>/components/com_users/src/Controller/UserController.php on line 54
| Labels |
Removed:
?
|
||
| Labels |
Added:
No Code Attached Yet
|
||
@cappuccinonet If you could test PR #38504 please, this fixes the issue.
Closing as we have PR
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-17 13:04:24 |
| Closed_By | ⇒ | roland-d |
Hello Roland,
Please forgive me if I am a complete beginner. After upsdating to 4.2.1 I cannot login anymore.
I reall tried to change line 54 to the given code:
$language = $this->getModel('Login', 'Site')->getMenuLanguage((int) $data['return']); but this just produces a new error:
" Joomla\Component\Users\Site\Model\LoginModel::getMenuLanguage(): Return value must be of type string, null returned "
What can I do next. Thank you for your help!
That line should've read