Skip to content

Make sure the itemID is of type int#38504

Merged
bembelimen merged 2 commits intojoomla:4.2-devfrom
roland-d:feature/fix-getmenulanguage
Aug 17, 2022
Merged

Make sure the itemID is of type int#38504
bembelimen merged 2 commits intojoomla:4.2-devfrom
roland-d:feature/fix-getmenulanguage

Conversation

@roland-d
Copy link
Copy Markdown
Contributor

Pull Request for Issue #38489.

Summary of Changes

When you have a login menu item and use that on a multi-lingual site, logging in will end in failure Argument must be of the type int

Testing Instructions

  1. Use a mutli-language site
  2. Create a menu item of the type Login
  3. Set the redirect to another menu item
  4. Try to login on the frontend
  5. You see the fatal error
  6. Apply patch
  7. Try to login again
  8. You are now redirected to the page set in the menu item

Actual result BEFORE applying this Pull Request

Fatal error on login on multi-language site

Expected result AFTER applying this Pull Request

User is logged in

Documentation Changes Required

None

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
@brianteeman
Copy link
Copy Markdown
Contributor

Third attempt at fixing the same problem :(

@roland-d
Copy link
Copy Markdown
Contributor Author

@brianteeman What did I do wrong?

@superknutsel
Copy link
Copy Markdown

tested succesfully


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38504.

@superknutsel
Copy link
Copy Markdown

I have tested this item ✅ successfully on 8e29b77


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38504.

@obuisard
Copy link
Copy Markdown
Contributor

@roland-d I have tried the patch wihout issue BUT I could not reproduce the problem in the first place

@roland-d
Copy link
Copy Markdown
Contributor Author

@obuisard Make sure you have correctly setup your multi-lingual site. Check that all plugins related to multi-lingual are enabled. If the multi-lingual check fails, the error will not be seen.

@cappuccinonet
Copy link
Copy Markdown

tested succesfully

@obuisard
Copy link
Copy Markdown
Contributor

@obuisard Make sure you have correctly setup your multi-lingual site. Check that all plugins related to multi-lingual are enabled. If the multi-lingual check fails, the error will not be seen.

Yes, all seems good, all plugins are enabled, and the site works as expected.

@richard67
Copy link
Copy Markdown
Member

tested succesfully

@cappuccinonet Please mark your test result in the issue tracker so it is properly counted. For doing this, go to https://issues.joomla.org/tracker/joomla-cms/38504 , click the blue "Test this" button at the top left corner, select your test e and submit. Thanks in advance.

@obuisard
Copy link
Copy Markdown
Contributor

obuisard commented Aug 17, 2022

tested successfully

Hello @cappuccinonet, please report your test in the issue tracker to report it. Thank you! Your help is appreciated.
https://issues.joomla.org/tracker/joomla-cms/38504

Sorry, I was not fast enough lol

@RickR2H
Copy link
Copy Markdown
Member

RickR2H commented Aug 17, 2022

I have tested this item ✅ successfully on 8e29b77


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38504.

@RickR2H
Copy link
Copy Markdown
Member

RickR2H commented Aug 17, 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38504.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Aug 17, 2022
@RickR2H
Copy link
Copy Markdown
Member

RickR2H commented Aug 17, 2022

@roland-d I set did set the tag to PR-4.3-dev. Please change if this is not correct!

@paternax
Copy link
Copy Markdown

I have tested this item ✅ successfully on 8e29b77


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38504.

@RickR2H
Copy link
Copy Markdown
Member

RickR2H commented Aug 17, 2022

@paternax There where already 2 successful tests so this PR was set to RTC. Please make sure that you only test PR's which have none or one successful test. every extra test is a wast of time and has no effect. Thanks anyway for taking the time to test!

@richard67
Copy link
Copy Markdown
Member

@roland-d I set did set the tag to PR-4.3-dev. Please change id this is not correct!

@RickR2H As you should be able to see, the base branch of this PR is 4,.2-dev, and so it needs the PR-4.2-dev label. It should also be easy to see on GitHub which labels were removed by the issue tracker when setting RTC, and so you should add back only these.

@bembelimen bembelimen merged commit 13d752e into joomla:4.2-dev Aug 17, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Aug 17, 2022
@bembelimen
Copy link
Copy Markdown
Contributor

Thx

@bembelimen bembelimen added this to the Joomla 4.2.1 milestone Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants