Call to non-existing methods
GeoffreyDijkstra opened this issue ยท 6 comments
Steps to reproduce:
- ... -> Security Suite -> Two Factor Authentication -> Enable = yes.
- Save Configuration
- Flush cache
- Admin user -> 2FA -> Enable = yes.
- Save user
- Now you will be asked for scanning the QR Code, but the image is broken:
- Follow link of the image:
Because of the requirement in composer.json "endroid/qrcode": "^1.7"
it installed version 1.9.3
in which those methods don't exist anymore. Also saw that on their github 1.7 tags don't exists.
So I can think of 2 possible solutions:
- Fix composer.json to include the correct package version
endriod/qrcode
- Update the code to use their new package version (also update composer.json to reflect that version number).
Hopefully you can provide an solution asap ๐
Don't think this is really relevant for the issue but:
Tested on latest Magento 2 CE & EE 2.1.6
Installed version of endroid/qrcode
= 1.9.3
Installed version of msp/twofactorauth
= 0.1.4
Also I couldn't return from the "Scan QR Code" screen by a cancel button or something and had to use your command line command: php bin/magento msp:security:tfa:disable
to get back in the system ๐ข
Just upgrade endroid/qrcode via composer.
Seems you are using an outdated module and we have to change our base version in composer.json file. They changed some method name.
You need version 2.1.x, there was a mistake in our composer.json
We just fiexed in our composer.json file if you wish to upgrade it.
Will update and see what happens ๐
Thx it works! ๐