agiliway / com.agiliway.civimobileapi

CiviMobilAPI Extension
Other
5 stars 3 forks source link

Events: QR-code doesn't show #25

Closed eth4ever closed 5 years ago

eth4ever commented 5 years ago

The QR-code for the participant doesn't show in the app or in the confirmation e-mail. I tested with a free event (no payments required), received an e-mail with a pictured but apparently the QR-code couldn't be downloaded.

I found the url to the QR-code in the registration of the participant. http://mysubdomain.mysite.org/civicrm/file?reset=1&id=338&eid=803 The file is stored at: sites/default/files/civicrm/custom/participantId_803.png Logged in to Civi I was able to download the file, logged out I wasn't. So it seems to be an access right issue.

How can I solve this?

netzih commented 5 years ago

Having the same issue. Registered participant they got an email and where was supposed to be the qr image is blank. Tried going to the participant on the web and when clicking on the file url in getting file url is invalid.... QR codes seems to not be working.

VoRCeK commented 5 years ago

Same here.. I can confirm the same issue. QR Code images are being created, but they are not showing in confirmation emails.

andriystabryn commented 5 years ago

@eth4ever @netzih @VoRCeK we have release a new extension with a fix. Sorry, but now you can use the functionality

VoRCeK commented 5 years ago

This still isn't working for me and we are using latest CiviMobileAPI 4.0.2. Although.. we are running CiviCRM 5.13.5

netzih commented 5 years ago

Still not working on 4.0.2 Civi 5.15.1

andriystabryn commented 5 years ago

Hi @VoRCeK and @netzih Thanks for your comments! We've found a bug and released a 4.0.3 version https://github.com/agiliway/com.agiliway.civimobileapi/releases/tag/v4.0.3 . Could you try one more time? Note that only new tickets will have QR codes.

VoRCeK commented 5 years ago

Mine is still not working.. I'm not going to presume I know why... but, others have discussed similar issues elsewhere and I think they might be related:

CIVI-SA-2019-01 Get URL of custom image field

the url created with this extension is

http://mydomain.org/civicrm/file?reset=1&id=5&eid=105

which does not have a signed access token included (fcs=) also, the generated url is still http although my site's traffic is rerouted to https

andriystabryn commented 5 years ago

@VoRCeK do you have 4.0.3 extension? We've fixed "https" bug in 4.0.3

VoRCeK commented 5 years ago

@andriystabryn yes, I am using 4.0.3 extension.. I have elected for the extension to update automatically.

netzih commented 5 years ago

I am on v4.0.3 as well and it isn't working. I'm on wp, can that be a problem?

andriystabryn commented 5 years ago

Guys, could you send me more details:

  1. what CMS and it version
  2. CiviCRM version

Would be perfect if you can send me credentials to your website in case there are no any sensitive information.

netzih commented 5 years ago

Guys, could you send me more details:

  1. what CMS and it version
  2. CiviCRM version

Would be perfect if you can send me credentials to your website in case there are no any sensitive information.

I'm on the latest versions of both. I'm on wp5.2.2 and civicrm 5.15.2 If I could send you my login, how would I do that?

VoRCeK commented 5 years ago

@andriystabryn here's my setup..

Drupal version: 7.67 CiviMobileAPI: 4.0.3 PHP version: 7.2.20

andriystabryn commented 5 years ago

@VoRCeK @netzih , We've found one permission, which prohibits access to QRcode image. Could you check if your user has "CiviCRM: access uploaded files" permission ? If no, please enable it and try to register one more time, only new registration should have QR image.

VoRCeK commented 5 years ago

@andriystabryn Confirmed: YES that Drupal permission is active for all roles. I also rebuilt permission and tried again, just in case.. still did not work.

And just for fun.. I did a fresh install of Drupal 7.67, CiviCRM 5.16.0 & CiviMobileAPI 4.0.3 and nothing else.. created 1 event w/ QR codes and 1 registration. The confirmation email still did not show the image. When I view the registration and attempt to directly visit the URL for the image:

http://MYDOMAIN/civicrm/file?reset=1&id=1&eid=51

I get the same error:

Warning: hash_equals(): Expected user_string to be a string, null given in CRM_Core_BAO_File::validateFileHash() (line 809 of /.../.../.../.../.../sites/all/modules/civicrm/CRM/Core/BAO/File.php).

AWG-Bohdan commented 5 years ago

Hello,

We have moved the project space for CiviMobileaAPI to CiviCRM's Gitlab. This includes both the issue tracking and support, and merge requests.

The new URL is: https://lab.civicrm.org/extensions/civimobileapi

All issues have been migrated to: https://lab.civicrm.org/extensions/civimobileapi/issues

If you do not already have an account on CiviCRM's Gitlab, you can create an account by registering on https://civicrm.org/user

Thank you!