Ubiquiti-App / UCRM-plugins

Plugins for UCRM - Complete WISP Management Platform
https://ucrm.ubnt.com/
MIT License
61 stars 102 forks source link

Barcode plugin doesn't show image in invoice #318

Open anon059 opened 8 months ago

anon059 commented 8 months ago

@janprochazkacz and @drlikm I really appreciate your work on Barcode plugin, searching this thing for a very long time!

I have found this plugin: https://github.com/Ubiquiti-App/UCRM-plugins/pull/256/commits

I have uploaded it into my UCRM plugins section, but if I add <img src="https://www.myUISPinstance.com/crm/_plugins/barcode_generator/public.php?code=someThingsHere&type=PDF417&width=75&height=75&color=black"> into twig template it shows nothing.

Even tried to replace www.myUISPinstance.com with localhost, local IP address etc.

it doesn't show image in PDF invoice, only "Image not found or type unknown"

If I access to image link directly from web browser, it will download .svg image (without sensitive info, of course).

What am I missing here? I tried to load external image into invoice template to verify it's not plugin error, for example https://www.google.com/images/errors/robot.png and had same error.

What am I missing there?

janprochazkacz commented 8 months ago

Hi @anon059. First, I have to warn you that this plugin is not ready to use yet. Your problem is probably caused by an insecure connection to your server with the barcode image.

anon059 commented 8 months ago

thanks @janprochazkacz issue was with self signed SSL cert on UISP host. may i get any more info about what is not ready yet? I'll use PDF417 to generate codes

EDIT: what's escape char for new line?