- Issue created by @edvanleeuwen
- πΊπΈUnited States bmcclure West Virginia
We started experiencing the same issue yesterday.
If I right-click the image and open it in a new tab, sometimes it loads but usually it gets a 502.
I guess Google must have just changed something in the chart API service, or they are having service issues.
- πΈπ¦Saudi Arabia ishore
We are in the same situation. A quick fix is to edit the QR field and change the QR code service plugin from Google Chart API to QR Code Generator (goQR.me).
- πΈπ°Slovakia poker10
Thanks for reporting this! This belongs to the TFA Basic Plugins module, as the QR code generation is implemented there. Moving the issue there.
According to this: https://developers.google.com/chart/image, the old API was deprecated in 2012 and supposed to be turned off in 2019. However it was running up to these days and now it is turned off.
See: https://groups.google.com/g/google-chart-api/c/rZtHTyYgyXI and https://groups.google.com/g/google-visualization-api/c/gzK8t7r6u_g
I think we need to either implement a new API from Google - https://developers.google.com/chart or find an alternative service which can be used as a replacement (potentially a drop-in replacement).
There are some potential candidates for drop-in replacement mentioned in those threads above, but preferrably we should check the Google API first, if we can switch to it and only if not, focus on another service. There we would also need to check the TOS and similar. Here are the mentioned alternatives (sites that need to fix this ASAP could probably review one of these services temporarily as a hotfix, but without any guarantee from TFA module maintainers - unless we will commit/push it oficially):
- πΈπ°Slovakia poker10
There is also another option, to use qrcode.js library, as per readme: https://git.drupalcode.org/project/tfa_basic/-/blob/7.x-1.x/README.txt?r...
- π«π·France jibus
It seems that Google Chart (new) does not support QR Codes generation.
https://groups.google.com/g/google-visualization-api/c/77YEadph9JY
- π΅πΉPortugal jcnventura
I think the best solution would be to remove the code that allows QR code generation externally, and force the installation of the qrcode.js library.
This should go through the removal of all the code that handles this solution, and the creation of a warning in hook_requirements in case the library is not installed.
- πΈπ°Slovakia poker10
Agree with @jcnventura, that this seems like the best approach now, as the new Google Chart library does not support QR codes and implementing another 3rd party service should be only the last option.
Adding a related issue about qrcode.js. And also updated the IS with this proposed approach.