Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticator "Class 'BaconQrCode\Renderer\Image\Png' not found" #32

Closed
littlebutcher opened this issue Jan 25, 2021 · 6 comments
Closed

Comments

@littlebutcher
Copy link

Hello,

I have problem with Authenticator ( in Syspass 3.2, Authenticator 2.2.1).
When I enable Authenticator in Plugins, I see in User prefereneces only text "Class 'BaconQrCode\Renderer\Image\Png' not found" nothing else.
When I disable Autheticator in Plugins, It works good, I could set some User preference.
Please how I solve this problem?
image
Thnaks

@G4b93
Copy link

G4b93 commented Feb 4, 2021

Hi,
same issue here with Syspass 3.2 and Authenticator 2.2.1.

Any suggestions?

Thanks

@tuxudo
Copy link

tuxudo commented Feb 12, 2021

Version 2.0 of BaconQrCode doesn't include the PNG renderer. See antonioribeiro/google2fa#105

@ortizleo
Copy link

Version 2.0 of BaconQrCode doesn't include the PNG renderer. See antonioribeiro/google2fa#105

did you make it works?

@tuxudo
Copy link

tuxudo commented Feb 15, 2021

Yes, you need to manually download the older 1.0.3 version of BaconQrCode and replace the 2.0 version in vendor with the files from the 1.0.3 version.

@occom9000
Copy link

Hmm, cant get this to work copying the 1.0.3 version over the 2.0 version, tried forcing compiler to install the 1.0.3 version but no luck.

Any other ideas?

@occom9000
Copy link

occom9000 commented Feb 18, 2021

Update: You dont have to copy over the entire directory, just copy the contents of the BaconQrCode folder into the /src/ folder

So for me (Ubuntu 18.04 lts)

sudo cp -a /tmp/BaconQrCode/. /var/www/html/sysPass-3.2.1/vendor/bacon/bacon-qr-code/src/

and a restart fixed it.

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

No branches or pull requests

5 participants