I'm trying to use the Name Badges feature to create badges for an NGO I work as a volunteer. So far I was able to set up the badge with the fields I need. Everything seems to be ok but, when I click to generate the PDF with the badges all the fields are there but the contact (participant) image. Even the QR Code is generated and printed.
I tried to debug in all the ways I know and found that, at /wp-content/plugins/civicrm/civicrm/CRM/Badge/BAO/Badge.php the imageURL has indeed the correct image path and file name.
The strange part is that even with the imageURL being correct, the image doesn't show up in the PDF. However, when I tried making imageURL a fixed value the image was printed (obviously, the same image for all participants).
As I ran out of options, would someone point me to any other way to figure out why this happens and how to fix it?
Any help is much appreciated. Thanks!
--- x ---
Thanks to a user's insight in lab.civicrm, I did some additional investigation and found that in db the imageURL is stored as
http://domain.org/civicrm?page=CiviCRM& ;q=civicrm/contact/imagefile& ;photo=0008_51c4b981d854da8af05e187aa199952b.jpeg
with & ; (I've added the space here because of the editor) instead of just &
I manually updated one record and the badge was generated with the image.
I can't say this was introduced as part of the update process or not, but a script to fix imageURL will make it work while the root cause is investigated.