Posted: March 2, 2017 at 6:11 am
|
Hi, I am getting this error “Connection error. Unable to load data” when i try to login through the EE4 android app. I am using application password to login in the app. I searched it in the forum & did the .htaccess changes as suggested but it is still not working. Please help me in resolving this issue. Thanks, |
Hi Atharveda, I checked this URL and it’s returning a valid JSON response with event data: https://www.adheds.com/wp-json/ee/v4.8.36/events Have you stepped through the troubleshooting checklist? https://eventespresso.com/wiki/ee4-event-apps/#troubleshooting |
|
|
Hi Josh, I went through the checklist & i verified all the steps. I even talked to WPEngine & got that directive added in Nginx configuration file & also verified the .htaccess changes. Even after doing all these changes, I am still getting the same error. Please help me in resolving this issue. Thanks, |
May I ask which version of the app is installed on your Android device? |
|
|
The App version is: 2.24 |
You can try this solution instead: https://github.com/georgestephanis/application-passwords/wiki/Basic-Authorization-Header—-Missing |
|
|
Hi Josh, I tried this as well. It is also not working. 🙁 |
Can you contact WPEngine support and ask them if the changes that were discussed in this Github issue have been deployed to your specific server? https://github.com/WP-API/WP-API/issues/2512#issuecomment-280539514 |
|
|
I discussed this with WpEngine support & they confirmed that this change has been rolled out to all the servers. So this change is in place for my install. |
You shouldn’t be getting any more Connection errors if they’ve got that change in place and the change is actually working. |
|
|
This is actually very strange. They say…things are in place & working. So what do you suggest i should do now? I have to make this work anyhow. We are totally stuck because of this issue & not able to launch our platform that we recently got developed. |
You can install this plugin: |
|
|
Hi Josh, I installed the above plugin & activated. Now when i login through app, i do not see any log generated. Is the request not even reaching to the web application? |
That may be the case. However you can check to see if anything gets logged when you visit this URL in your web browser: |
|
|
Yes josh. I can see the complete request, headers and response logged when i visit the above url. |
That means the logging is working then. It sounds like your server is blocking the requests from the app, so you could check the access logs as well as any mod_security logs to see if any of the requests from the apps are triggering anything there. |
|
|
Hi Josh, I am continuously doing the follow up with them & after few days of analysis, this is what they have replied:
|
I removed your username and password from your above copy/paste. I also checked a request to: https://www.adheds.com/wp-json/ in a browser, and that’s throwing an internal server error now. So that may be a result of what they changed on their end, or you have a plugin on your website that’s interfering with the WP REST API. |
|
|
Hi Josh, This request is working: https://www.adheds.com/wp-json/ I can see the json data in the browser. |
Maybe you can, because you’re logged into the website already. It’s throwing errors when I try the same URL: |
|
|
Hi Josh, So WPEngine developers say that when they changed our theme to the twentyfifteen theme they were able to access the event within the app & their guess is that paid membership functionality of the theme is interfering with access to the event content. I have done enough follow up now & i want you guys to step in & fix this issue. I am OK if i have to buy the priority token for this issue. Please let me know how to proceed from here. Thank You. |
Hi there, If Event Espresso support staff gets involved with working on your WordPress theme, you’ll need to purchase enough priority support to cover the time it takes to disable the paid membership functionality of the theme. Frankly we don’t support 3rd party themes (or plugins for that matter). So you might be better off checking with the theme developer first. They may know of a way to make the paid membership functionality of their theme allow authenticated WordPress REST API requests. |
|
|
Hi Josh, I verified this by disabling all the plugins (Leaving only EE4 & Application Password plugin active) including paid membership but it didn’t solve the problem. So Paid membership plugin is not a problem. When i switched to other theme leaving all plugins active, it started working. So i think problem is with my theme. We have got our theme very much customized so they will simply ask to update the theme which we can’t. So i think they are not going to help us here. How much time or support token do you think it will take roughly as we don’t have any other option but to get it fixed? |
No idea without looking at the code. It may even be one of your customizations to the theme that’s causing the problems. Normally a properly coded WordPress theme will not affect REST API requests. |
|
|
Hi Josh, This issue has been fixed so i am closing this thread. The problem was in the theme. |
The support post ‘App Error – Connection error. Unable to load data’ 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.