Support

Home Forums Event Espresso Premium EE4 – APP – No route was found matching the URL and request method

EE4 – APP – No route was found matching the URL and request method

Posted: October 3, 2016 at 1:00 pm


Sandra Campanelli

October 3, 2016 at 1:00 pm

Hi there!

I’m trying to log into the EE4 app on my Android phone, this app is newly installed. I’m getting the error message “No route was found matching the URL and request method”.
I passed all through the support forum, the debug checklist, I’m still stuck (Application Passwords set, permalink set to Post Name, htaccess configure).

I have tested with Postman if I can get anything.
So, when using the link wp-json/ee/v4.8.36/attendees -> I authenticate & get results.
But when I try with current EE4 version -> No route message
(Well, I deduced that it used this data… maybe I’m wrong and it does not help… :/ )

EE version is 4.9.13.p
Wordpress version is 4.6.1
Hosted on HostGator

Did I missed something?
Thanks in advance!


Josh

  • Support Staff

October 3, 2016 at 3:17 pm

Can you verify with your host that the server is Apache, and whether or not it’s using FastCGI?


Sandra Campanelli

October 3, 2016 at 6:41 pm

I’ll contact them tomorrow for FastCGI. If not I think with the type of hosting I have I can install and enabled it…
I do think it’s Apache but I’ll confirm with them too.

For the rest, do you think I did alright?
Why is on Postman it worked? Because the app is using FastCGI and not Postman?

Thanks!


Josh

  • Support Staff

October 3, 2016 at 7:53 pm

The app uses the same authentication method that Postman uses (Basic Auth). In theory it should work but we’ve seen issues where the Basic Authorization headers are not passed to the app if the server uses FastCGI. Usually the edit to the .htaccess file works to allow the Authorization headers to pass correctly even with FasctCGI.


Sandra Campanelli

October 4, 2016 at 3:32 am

Ok so I don’t need FastCGI…. If I can disabled it, it’s better?


Sandra Campanelli

October 4, 2016 at 3:51 am

I’ve uninstalled FCGI and tried, I got the same error message.
The hosting is with Apache.
I test again with PostMan, and it’s all ok again.
Not with the app. 🙁

Can it change something if my wordpress is in a folder, not in the root? Even if I specify in the Website URL of the app the whole url with the sub-folder? (http://www.website.com/folder/)


Seth Shoultes

  • Support Staff

October 4, 2016 at 10:01 am

Do you mind if we take a look in your WordPress admin and try testing the app using your server? Please send WordPress temporary admin level log in credentials via this form:
https://eventespresso.com/send-login-details/


Sandra Campanelli

October 4, 2016 at 10:44 am

I’ve just sent you the infos. Thanks!


Seth Shoultes

  • Support Staff

October 4, 2016 at 12:56 pm

Hey Sandra,

Thanks for sending over the login info. I found the issue. It looks like the Yoast SEO is overriding the Event Espresso REST API endpoint URLs. I installed a REST API logging plugin on your site and can see this in the logs (on your site, go to WP admin > Tools > REST API Log):

This is how the endpoint URL’s should look:

I went ahead and deactivated the Yoast SEO plugin and can see that the endpoints are working correctly now. Can you please try logging in via the app now?


Seth Shoultes

  • Support Staff

October 4, 2016 at 1:03 pm

Also, FYI, I changed your .htaccess file to replace this:
RewriteRule ^index\.php$ - [L]

With this:
RewriteRule ^index\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]


Sandra Campanelli

October 5, 2016 at 5:10 am

Thanks a lot Seth, so it was Yoast SEO plugin the problem… I tried the line in the htaccess you put, I don’t know why it was not there when you check it?
But now with Yoast disabled, I can access in the app with no problem.
Thank you very much for your support, it was very fast!!!

The support post ‘EE4 – APP – No route was found matching the URL and request method’ 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