progressivetech / net.ourpowerbase.qrcodecheckin

QRCode Checkin allows you to send an email that contains a scanable code to the registered participants for your event.
Other
16 stars 15 forks source link

You do not have permission to access this content #25

Closed themak1985 closed 8 months ago

themak1985 commented 2 years ago

I only seem to be able to check in myself - anyone else's QR code I scan says I do not have permission to access this event.

I have full admin access.

If you offer paid support - I would pay for an hour of your support

themak1985 commented 2 years ago

This is an example QR code URL - in case it helps: https://example.org/civicrm/?civiwp=CiviCRM&q=civicrm%2Fqrcodecheckin%2F57%2F7186a5dea3030594163f17016ff2929b5a2024a410d497ca29df696e1e3dea71

If I am checking in myself, it works, if I am checking in other people, it says

Hi name, welcome to CiviCRM
You do not have permission to access this content.

I am an admin and even when I make new users with correct permissions this happens.

jmcclelland commented 2 years ago

I searched the CiviCRM code base for the string "You do not have permission to access this content." and the only reference I found was in the 5.28 release notes, which says in the WordPress section:

Fixes a 'You do not have permission to access this content.' error resulting from an extra '/' in the q= string in the url.

So...

  1. Are you running CiviCRM 5.28 or higher?
  2. Is there an extra encoded slash in there?
  3. Are your WordPress permissions set properly?

In other words, I don't think this is a bug in the QR extension code - I think something else is going on with your WordPress install. Or, it's a bug only triggered by WordPress which means I'll need help fixing it since I don't use that platform.

themak1985 commented 2 years ago

Running CiviCRM 5.49.1 CiviCRM URLs on wordpress confuse me, but using URL decoder, I don't see another slash, it translates to: https://example.org/civicrm/?civiwp=CiviCRM&q=civicrm/qrcodecheckin/57/7186a5dea3030594163f17016ff2929b5a2024a410d497ca29df696e1e3dea71

When I visit the same page decoded, it actually works - when I visit it as generated from QR code reader - it gives me that error.

I think I just discovered the core issue with that test - but what is the cause?

Also do you use paypal or venmo, I want to send you a beer.

themak1985 commented 2 years ago

Update: I may have fixed this my simply loading the permalinks page on wordpress - will followup to confirm if true.

themak1985 commented 8 months ago

Was permalinks issue.

jmcclelland commented 8 months ago

Thanks for the follow up!