joshp23 / YOURLS-IQRCodes

YOURLS QRCode plugin with exposed options and full integration
GNU General Public License v3.0
22 stars 11 forks source link

Not generate SVG QR #33

Open djcesar opened 5 years ago

djcesar commented 5 years ago

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

has 777 permissions

Also the files qrchk.php & srv.php

located in

has 777 permissions

image

image

Any idea how i can make SVG Qrs to work?

(sorry my english)

Thanks in advance!

serotonincrash commented 4 years ago

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 commented 4 years ago

thank you @derpydm . fixed

martinrademacher commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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