Support

Home Forums Event Espresso Premium Problem with app – Missing permissions

Problem with app – Missing permissions

Posted: January 24, 2019 at 3:02 am


Geothermie-Schweiz

January 24, 2019 at 3:02 am

Hello,

I’ve a problem with the phone app. the message it the following:

“Sorry, you are not allowed to list events. Missing permissions:
ee_read_events,ee_read_others_events,ee_read_private_events”

My event is on next Tuesday… What is the problem…

I’ve alreday edited the .htaccess file with :

“# Begin Custom htaccess
SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
# End Custom htaccess”

but it’s still not working.

The site Web is http://www.geothermie-schweiz.ch or http://www.geothermie-suisse.ch

I supposed that the 2 different URL could be the problem. I’ve tried to connect with the both. No way! Still not working.

Thanks for you help

Phil


Tony

  • Support Staff

January 24, 2019 at 5:40 am

Hi Phil,

I can see your site is currently using 4.9.77.p

Have you tested this since updating to that version as it includes a fix to prevent that error?


Geothermie-Schweiz

January 24, 2019 at 6:54 am

I’ve already made the update when I have written the ticket.

Still not working!


Tony

  • Support Staff

January 24, 2019 at 7:28 am

Actually, my mistake, the fix is for a similar error but with different permissions that “shouldn’t” be needed by all.

Are you logging into the app with an administrator account?


Geothermie-Schweiz

January 24, 2019 at 7:33 am

Yes I’m


Geothermie-Schweiz

January 24, 2019 at 7:34 am

The site on back-end load on geothermie-schweiz.ch/wp_live URL.

In the pluging managment of WordPress, I have this warning:

“A new version of Event Espresso – Ticketing (EE 4+) is available. View What’s New with version 1.0.9.p. A valid Support License Key is needed to enable automatic upgrades. The key you have entered is invalid or has expired. Please log in to your Event Espresso account to manage your Support License Keys or purchase a support license right now.”

But my licence is still valid until April 19 and working.


Tony

  • Support Staff

January 24, 2019 at 7:49 am

Your account currently has the EE4 Personal License (the personal license does not come with any add-ons) and has a separate purchase for the Stripe payment method add-on, which is why you are getting the above notice for the ticketing add-on, it’s not included with your license.

I can’t see any purchase for the Ticketing Add-on linked to the account you are posting from now, did you also purchase EE using another account?

In any case, its not the cause of the issue you have with the apps.

The apps use the REST API to communicate with your site and testing a request on your domain returns error 500:

https://geothermie-schweiz.ch/wp-json/

If you check the servers error logs you should find a fatal error is thrown whenever the above request is made, can you post that here, please?

If you don’t have access to the error logs or can’t find them, you can add this snippet:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

To your wp-config.php file, that tells your site to log the errors to /wp-content/debug.log so we can take a look.


Geothermie-Schweiz

January 24, 2019 at 8:37 am

I’ve done that…

I can’t see any log.

I’m lost.

Any other idea?


Tony

  • Support Staff

January 24, 2019 at 8:48 am

What have you done?

I need the error being thrown to have any idea of what is happening on the site.


Geothermie-Schweiz

January 28, 2019 at 2:13 am

Hi,

Here is the log:

Das erzeigt diesen Fehler:
{“code”:”rest_events_cannot_list”,”message”:”Sorry, you are not allowed to list events. Missing permissions: ee_read_events,ee_read_others_events,ee_read_private_events”,”data”:{“status”:403}}

Und das Logfile sieht danach so aus:

GET /wp-json/ee/v4.8.36/events?where[Datetime.DTT_EVT_start][]=%3E&where[Datetime.DTT_EVT_start][1]=2019-01-28T23:59:59&order_by[EVT_name]=ASC&include=Datetime.*,Venue.*&calculate=Datetime.spaces_remaining_considering_tickets,Datetime.registrations_checked_in_count,Datetime.registrations_checked_out_count,Datetime.spots_taken_pending_payment,image_thumbnail,image_large&limit=0,20&caps=read_admin&_authorization=Basic+YWRtaW46Uml2ZTExYV8xOSE%3D HTTP/1.1

Is that helps you.

My event is tomorrow…
I hope we can find a solution


Tony

  • Support Staff

January 28, 2019 at 2:40 am

Und das Logfile sieht danach so aus:

That’s an access log, I need an error log.

Did you add this snippet wp wp-config.php?

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug


Geothermie-Schweiz

January 28, 2019 at 3:07 am

Now is’t done!

https://geothermie-schweiz.ch/wp_live/wp-content/debug.log

Sorry


Tony

  • Support Staff

January 28, 2019 at 4:27 am

Ok, there’s no error logged there which can mean the error is being thrown before it can be logged using that method.

If you don’t have access to the error logs on your server (they are usually in your control panel, or an error_log file in the root directory of the site) to view the error being thrown you’ll need to contact you host and have them check why this page:

https://geothermie-schweiz.ch/wp-json/

Returns error 500.

The REST API must function on your site in order for the apps to connect to it.

Looking through the errors thrown on your site (you have a lot of PHP notices being thrown on each request btw, I’d recommend working through those but they are not causing the current issue), it looks like your site is running out of memory faily frequently:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes)

You could try to increase the amount of memory available to the site and see if that helps:

https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/

However, either way we need the error being thrown on https://geothermie-schweiz.ch/wp-json/ to be able to help further with this.


Geothermie-Schweiz

January 28, 2019 at 5:39 am

My webmaster has found the solution.

https://eventespresso.com/wiki/ee4-event-apps/#authentication

Plugin installed… now working.

Well… not sure to habe undertstood why it’s working right now… but hopefully tomorrow i would be able to scan ticket!

Thanks for your support.


Tony

  • Support Staff

January 28, 2019 at 6:35 am

Plugin installed… now working

They installed the ‘Applications Passwords’ plugin and it fixed the problem?

I’m not sure why that would be the case, nor why that would prevent error 500 on the wp-json url.

Well… not sure to habe undertstood why it’s working right now… but hopefully tomorrow i would be able to scan ticket!

Test it now to confirm, add a test registration to the event through the admin (Event Espresso -> Events -> {hover over event name} -> Registrations -> Add new registration) and then try to scan that ticket.

If you don’t test if this works now it will be to late once your event starts.


Geothermie-Schweiz

February 1, 2019 at 8:14 am

Sorry for my late answer…

It was working… not really understood why… but even! This is working good!

The support post ‘Problem with app – Missing permissions’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso