QRC Generator

6 posts by 4 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: April 19   (RSS)

By pgplast - April 3

I have just noticerd that on one of my installs where I have been using QRC 1.02 for quite some time, the codes have all ceased to appear and are regularly replaced by broken image icons.

Nothing on this site has changed (other than some unrelated content) in months.

I deactivated the plugin and reactivated, but I continue to get blanks all over the site.

Does anyone have any idea about this? If this isn't going to work any longer I will need to strip its use from all over the site.

Thanks.

By Dave - April 3

Hi pgplast, 

I looked into this and it seems like Google has disabled the Google Charts API we were using to generate those and they no longer offer that service.

We'll probably build a new custom solution next time we have a project that requires it and make it available.  

Sorry about that.  

Dave Edis - Senior Developer
interactivetools.com

By pgplast - April 4

Thanks Dave.

After poking around for a while I found a new endpoint that seems to work.

I made a change to the plugin

I changed...

$chartURL = "http://chart.apis.google.com/chart?";

$chartURL .= http_build_query(array(
'cht' => 'qr',
'chs' => $height . 'x' . $width,
'chl' => $data,
'chld' => '|' . $options['margin'],
));

to...

$chartURL = "https://qrcode.tec-it.com/API/QRCode?data=".$data;

This seems to have my QRCs appearing again.

By pgplast - April 16

Glad it was a help. I am not at all sure if this is to be a long-supported endpoint or not,. but I guess we will see!

By craig_bcd - April 19

Thanks, I had the same problem! Really appreciate you figuring this out and sharing!