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

Not generate SVG QR #33

Open
djcesar opened this issue Oct 9, 2019 · 5 comments
Open

Not generate SVG QR #33

djcesar opened this issue Oct 9, 2019 · 5 comments

Comments

@djcesar
Copy link

djcesar commented Oct 9, 2019

Hi im working with a AWS Instance through Bitnami LAMP it Generates QRs on JPG, and PNG format

YOURLS v 1.7.4
YOURLS-IQRCodes-2.1.1
YOURLS-U-SRV-2.1.0
phpMyAdmin v 4.9.1
PHP v 7.3.10
MySQL v 8.0.17

image

but when i try to generate SVG QRs doesn't, the loader keeps spinning in a infinite loop.
image

if i refresh the browser the link has been created but QR doesn't show
image

image

Caché folders and sub folders on

  • user/cache
  • user/cache/qr
  • user/plugins/iqrcodes/cache

has 777 permissions

Also the files qrchk.php & srv.php

located in

  • user/plugins/iqrcodes/assets
  • /pages

has 777 permissions

image

image

Any idea how i can make SVG Qrs to work?

(sorry my english)

Thanks in advance!

@serotonincrash
Copy link

serotonincrash commented Mar 12, 2020

Issue lies in this line (line 497, plugin.php):

QRcode::{$opt[5]}( $shorturl, $filepath, $opt[1], $opt[2], $opt[3] );

The SVG constructor also needs two more arguments, the background color and foreground color.

@joshp23
Copy link
Owner

joshp23 commented Jul 22, 2020

thank you @derpydm . fixed

@joshp23 joshp23 closed this as completed Jul 22, 2020
@martinrademacher
Copy link

martinrademacher commented Aug 14, 2020

It's still not working at least on my installation. PNG and JGP work fine. SVG qr-codes are not generated.
Version: 2.2.1

@emulsion-io
Copy link

Hi,

I fix

Edit : phpqrcode.php line : 3178

QRvect::svg($tab, $outfile, min(max(1, $this->size), $maxSize), $this->margin,$saveandprint, 0xFFFFFF, 0x000000);

I add 2 arguments, the previous fix add 2 arguments in plugin.php but is not use in phpqrcode.php

Have a nice day.

F.

@joshp23
Copy link
Owner

joshp23 commented Jun 17, 2021

there appears to be a problem with upstream project's code. until that is fixed, it appears no SVG.

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