Posted: May 29, 2020 at 1:05 am
|
Hi guys We have a problem. We can not logg-in into the app anymore. If we want to logg in with our usual login-datas, there comes the following error-message: Sorry, you are not Allowed to list events. Missing permissions: We logg-in with our admin-datas, so we should have all permissions. Would be great to get your help. Thank you |
Hi Cristina, Please see the troubleshooting section of the app documentation here: https://eventespresso.com/wiki/ee4-event-apps/#troubleshooting The above can be caused by a security plugin blocking the request or your server config not allowing authorization headers through and we have some details on fixing it in the above doc. |
|
|
Hi Tony I don not deactivated any plugin form EventEspresso, so I do not understand why it does not work anymore. Would be so happy if you can check the website: http://www.neudikids.ch Thank you so much |
|
Hi Guys But I still have the big problem, that the App does not work. |
|
Hi Tony I sent you a request with the logg-in datas for the website and app trough https://eventespresso.com/send-login-details/ Would be great if you can help me! |
May I ask why you’ve installed that plugin? You don’t need another plugin to use the mobile apps as the REST API is built into WP and EE.
The credentials sent are invalid, I’m getting ‘Unknown username. Check it again or try your email address.’. Can you re-check and resend, please? |
|
|
I found this info in one forum-discussion to install the REST API-Plugin. Sorry for the unknown username. |
Ah, I see, you are referring to the REST API Log plugin and thats fine. So, right now your sites REST API endpoint is throwing a fatal error, the app uses the REST API to communicate with the site so that needs to be fixed. Go to {domain.com}/wp-json/ and you’ll see your get Error 500. If you check the servers error logs and search for ‘fatal error’ around the same time that page was loaded, what does it show? |
|
|
Hi Tony I think, something blocks, because the actual situation ist, that I can’t go to Eventespresso “Events” or add or edit them….There coms always the ifnformation, that there is a “critical error” on the website…. Could you maybe logg-in to the website with the data I sent to you and help me? Thank you so much |
|
Hi Tony I am not sure if that helps: Just as info…. Thank you |
Exactly, and that’s the problem. When you load this page: https://www.neudikids.ch/wp-json/ There is likely an error thrown on the server.
Huh? I can edit the events on your site just fine. Event Espresso -> Events loads fine for me. Is there a specific event it happens on?
I’d already logged into your site and checked over what I have access to before I replied, which technically we do not do without a support token but I figured I could at least take a look. If you prefer for us to troubleshoot on your site/server directly you’ll need to purchase a support token, otherwise we can work through your issue here but we’ll need the actual error being on the site rather than the ‘front end’ errors. Do you have access to the PHP error logs?
This isn’t a license issue, EE does not an will not limit your site based on any issue with your license. |
|
|
Hi Tony Yes the events load fine again. I deactivated all plugins and activated just a few, so everything works well. But the App….still not works 🙁 Thanks for your help, |
It sounds like your site may be running out of memory, I checked and it looks like it is set to use 40MB (which is very low). Are you comfortable changing PHP files? If so I can tell you how to increase the amount of memory your site is set to use, it may not fix the problem as without knowing the error you’re getting its just a guess.
The app simply will not work whilst this page: https://www.neudikids.ch/wp-json/ Shows an error 500.
You’re host will usually have a section in your control panel to view errors. Or they may be an error_log file within on the server with them in. Do you have FTP access to the site? |
|
|
Hi Tony I would be so happy if you find the problem, so that we can solve the error and use the app again. Thank you so much |
Hi Christina, Unfortunately, the logs sent don’t give any info on the problem. They do show your site is running out of memory on your woo-commerce dashboard but not much else. I need FTP credentials to see what the actual error is, can you provide all of the information requested on the login details form please: https://eventespresso.com/send-login-details/ If you don’t have FTP credentials you’ll need to request them from your host as there isn’t much I can do without them. |
|
|
This reply has been marked as private. |
This reply has been marked as private. | |
|
This reply has been marked as private. |
This reply has been marked as private. | |
|
This reply has been marked as private. |
Ok, so by the time I was able to access the site the fatal being thrown on /wp-json/ is no longer thrown, I’m guessing its a memory exhausted error and now doesn’t throw because you’ve deactivated plugins. However, the problem still appears to be the authorization header is being blocked. Can you check with your host and ask them if they are filtering it? You can send them this link for more details: https://github.com/WP-API/Basic-Auth/pull/32 If not, it could be another plugin hijacking the request. |
|
|
Dear Tony Sorry, you are not Allowed to list events. Missing permissions: ee_read_events, ee_read_others_events, ee_read_private_events Thanks for your help. |
Hi Christina, The requests sent to/from the app use an ‘Authorization’ header to essentially ‘log into the site’ so that it can access the data it needs to. On your server it looks like that header is being blocked/filtered from the request, did you ask you host about the authorization header or just the memory_limit? |
|
|
Hi Tony Once again, I contact you because the mobile app does not work. Our season starts soon and we should have the app working… I asked our hoster, why your IP-Address has no access. This is the answear from the hoster: What shall I do? Thanks for your reply. |
I was able to connect to the server a while back using SFTP and a different port than the one initially provided, so that seems like an old response from before that?
Did you ask your host if they block/delete PHP Authorization headers as mentioned above? When I capture the request sent to your site from the app, it shows the Authorization header is sent, but apparently the header doesn’t make it through to your site and that is required for it to work. I’ll include a screenshot in a private reply after this, but the EE app sends an authorization header to authenticate with the site, that should be passed through to the basic_auth plugin we have included within EE and it sets a flag for us to confirm which is I’ve already added a couple of workaround we use to your sites .htaccess file for this, none of those are working so its something that needs to be fixed server side. |
|
This reply has been marked as private. | |
|
Hi Tony Our hoster asks: Thanks for your reply. |
That sounds related to SFTP, which is no longer issue as I can connect to your site and is completely different from the problem with the app. Right now a standard HTTP request sent to your site’s REST API endpoint from the app (nothing to do with FTP/SFTP) with an authorization heard set is having that header stripped out before it is processed by your site, which means you site must be blocking/stripping that header from the request. I can’t fix that and it’s something your host needs to investigate further. I’ve linked above to examples: https://eventespresso.com/topic/mobile-app-does-not-work-anymore/?view=all#post-312985 and https://eventespresso.com/topic/mobile-app-does-not-work-anymore/?view=all#post-314354 |
|
|
This reply has been marked as private. |
|
Dear Tony |
Hi Cristina, I’m not really sure what feedback I can give you here? Your host responded to say they activated basic auth (so yes, they were blocking it) and gave you some code to add to the sites .htaccess file, have you added that code? Or asked them to add the code? I’ve already added code to the sites .htaccess file which is still active ono your site. Your host knows their servers best and this is something they need to enable on their end, so they need to add the code wherever it goes. |
|
|
Dear Tony The Hoster added the code on .htaccess, but the App is still not working. Maybe you can check again now when the code is added and find out why the app is not working? Thank you for your support! |
That’s exactly the same error that was thrown previously and is likely due to the same issue. We don’t store login details so I currently can not log in, can you resend the credentials using this form please: |
|
The support post ‘Mobile App does not work anymore’ 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.