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

[BUG] #62

Closed
if7D0 opened this issue Apr 24, 2024 · 3 comments
Closed

[BUG] #62

if7D0 opened this issue Apr 24, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@if7D0
Copy link

if7D0 commented Apr 24, 2024

Jelaskan bug tersebut
Failed to generate qr code. Extensi -intl dan -gd sudah diaktifkan. Mode environment sudah development. Apakah ada solusi?

Screenshots
Screenshot (469)

Versi yang digunakan
v1.5.6

Versi PHP
PHP 8.2

@if7D0 if7D0 added the bug Something isn't working label Apr 24, 2024
@ikhsan3adi
Copy link
Owner

ikhsan3adi commented Apr 24, 2024

Coba hilangkan logonya di app\Controllers\Admin\QRGenerator.php

// Line 49
$this->logo = Logo::create(base_url('public/assets/img/logo_sekolah.jpg'))->setResizeToWidth(75); // hapus ini

// Line 116
$this->writer
->write(qrCode: $this->qrCode, logo: $this->logo, label: $this->label)
->saveToFile(path: $this->relativePath . $this->qrCodeFilePath . $filename);

jadi:

// Save it to a file
$this->writer
->write(qrCode: $this->qrCode, label: $this->label)
->saveToFile(path: $this->relativePath . $this->qrCodeFilePath . $filename);

@if7D0
Copy link
Author

if7D0 commented Apr 24, 2024

QR code sudah di-generate dan dapat di scan. Tapi pada menu tambah petugas masih mengalami error.

@ikhsan3adi
Copy link
Owner

ikhsan3adi commented Apr 24, 2024

QR code sudah di-generate dan dapat di scan. Tapi pada menu tambah petugas masih mengalami error.

Untuk sementara, update file vendor/myth/auth/src/Authentication/Passwords/ValidatorInterface.php

#use CodeIgniter\Entity;
use CodeIgniter\Entity\Entity;

sumber:
lonnieezell/myth-auth#621 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants