Posted: August 2, 2016 at 7:41 am
|
I have been struggling with your mobile apps for weeks now and have been mostly unsuccessful. At one point I had it working but then I tried the application password authentication method and it didn’t work. At this point when I try to log in with the Application Password I created, I get a ton of popups on the iOS version of your app. They read: “Error Occurred: The requested resource could not be found but may be available again in the future. Subsequent requests by the client are permissible.” and “Error Occurred: Could not get API version!”. I am very frustrated by this whole process. Can you help? What can i provide you? I know I am not giving you enough information to go on but at this point I’m not sure what to do. Thanks! |
|
Some details: Wordpress Version: 4.5.3 Event Espresso works through web, get errors above when trying the mobile app. |
Hi there, You can check your site’s wp-json discovery endpoint, which is {yoursiteURL}/wp-json, and see that it’s returning a blank screen. Normally that should display a list of API endpoints. Have you installed any security plugins or have any changes been made to the web server since the time where this was working? |
|
|
So yes, that does display an empty screen. When things were working, there was a notification at the top of my wordress dashboard saying that the basic authentication method was going to be disabled in the future (i’m paraphrasing) so I enabled application passwords and deleted that plugin. That’s when everything went to s**t. I now have the following “security” related plugins installed: Clef: this has always been installed even when things were working |
I’m seeing this error when I try to load the wp-json endpoint from your site in a browser:
You can increase the amount of memory available for WordPress by following this guide: You can use an [FTP client][1] and [a text editor][2] to edit the site’s wp-config.php file: [1]: http://codex.wordpress.org/FTP_Clients |
|
|
Interesting, going to http://mysite/wp-json didn’t show that but going to https://mysite/wp-json did. That fixed that problem. Now however I am having a different problem. I am now getting the following error when I log in: Error: Sorry, you are not allowed to list events. Missing permissions: ee_read_events, ee_read_others_events, ee_read_private_events But i just checked the my user’s roles and I see that I do have all of those permissions. Thoughts? I’d be happy to give you credentials for my site if that would help you figure it out. Let me know and thanks for the quick responses! |
|
FYI, I did try disabling my Clef plugin and I got the same error. |
The error message is sufficient for figuring this out. What happens is the app tries to authenticate using the http Authentication header. If that header is disabled on your server, which appears to be the case here, you’ll see those errors. Here are a few options: a) Contact your host and ask them if they can enable the authentication header for your site. b) If you’re comfortable with editing the site’s .htaccess file, you can make this edit: Then you disable the Application Passwords plugin and the bundled Basic Auth plugin will be used to authenticate the app. |
|
|
OK I thought I remember seeing that Basic Auth plugin is going to be unsupported in future versions… is that true? |
|
OK this godaddy support person is an idiot. I want to understand the problem myself so I can dumb it down for them. I’m a developer (not a web developer but I’m very familiar with the HTTP protocol so please don’t dumb it down for me). Which header are you referring to: https://en.wikipedia.org/wiki/List_of_HTTP_header_fields Are you talking about WWW-Authenticate? And are you saying that fastCGI servers filter that header out before the PHP application gets the request? |
|
Sorry, i know your job is not to configure my server but I really appreciate your help! |
|
I found this: if you are using apache with mod fcgid you have to add <IfModule fcgid_module> to make it work Here: http://php.net/manual/en/features.http-auth.php Is that what I need to be able to do? |
It’s true, however support isn’t going to be dropped until there’s a viable replacement that’s ready to use, like oAuth.
Yes.
You don’t need to quote me on this, here’s what you’ll find from other sources: http://stackoverflow.com/questions/7053306/http-auth-via-php-php-auth-user-not-set |
|
|
so godaddy said that they are not blocking that header… SO, i did the .htaccess file change you suggested but DID NOT turn off application passwords and everything is working. |
I’m sorry that your site is hosted on Godaddy. |
|
The support post ‘Can't get mobile apps to work…’ 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.