Posted: November 29, 2017 at 9:05 am
|
I did the GetHub .httaccess fix nad added the REST API log. I continue to get that error and the log does not show anything at all. Am I missing something else? We’re on a VPS. Should I ask the host something? Our website is https://deansfarmmarket.com |
Hi Dean, Sometimes the Connection error is the result of a plugin conflict. In the troubleshooting guide, it explains what to do if you have the iThemes security plugin: https://eventespresso.com/wiki/ee4-event-apps/#long-uri-strings If you do not have a security plugin like iThemes security it may help to follow the general troubleshooting guide: |
|
|
I deactivated all the plugin and cut them on one by one. The only two that caused the error are WooCommerce and MailChimp for WooCommerce. I can live without the MailChimp, but we cannot abandon our store. Any idea what the issue is? |
No idea because I have WooCommerce activated on a testing site and the Apps work there. Can you try checking the REST API log entry for when you try the app with WooCommerce activated? There may be a specific error message that gets captured that will show what to check next. |
|
|
Nothing shows up in the log at all when WooCommerce is activated. It’s as if it never gets the request. |
If that’s the case then you should make sure you have the current version of WooCommerce installed and if all else fails you can open a support ticket with WooCommerce: |
|
|
Please excuse my very limited knowledge of code, but I looked at the error log and this is what I get when I try to login to EE4 from my phone. Any ideas? [30-Nov-2017 16:03:04 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in /home/deansfarmmarket/public_html/wp-includes/link-template.php:357 |
Hmm, so that error is thrown each time you try to log in and its not just shown once in the log? |
|
|
If I have WooCommerce activated that error shows in the error log if I try to login in from the EE4 mobile app. If I turn off (deactivate) WooCommerce the app will connect and no error is received in the log. |
The stack trace shows a few functions where WooCommerce is interacting with WordPress core. Have you contacted WooCommerce for support? What this looks like is there’s some interference happening when the bundled Basic Authentication tries to authenticate the app. |
|
|
Yes, I submitted the same information on the WooCommerce support forum, but have not had any response from them. |
The same symptom was reported here: https://github.com/woocommerce/woocommerce/issues/8694 and it turned out to be a bug in the Yoast SEO plugin and was fixed. If you try temporarily switching to another theme, then have only WooCommerce and Event Espresso activated does the site allow the app to connect? |
|
|
We do not use Yoast SEO. So, I turned plugins off except for the EE4 ones. Swithched to Twenty-Seventeen theme and cut on plugins one by on and tested the mobile app till the login failed. Mobile app worked until WooCommerce was activated. I’m getting the same results on both Themes. I’m lost. We were relly looking forward to using the mobile app. |
|
This thread may have something useful. https://github.com/WP-API/Basic-Auth/issues/33 Wish it were in laymen terms. |
I realize that you don’t use Yoast SEO, the reason I mentioned Yoast SEO was for clarity about the situation reported in similar issue. What could be happening is something similar within your site calling A few ideas that may help: 1) Remove whatever you just added to .htaccess, it’s not helping nor is needed anyway. |
|
|
Thanks Josh. I turned off Application Passwords plugin and used my normal WP login credentials and the EE4 mobile app logged in perfectly. Not sure how that made a difference, but at least we can use the app now. Thanks again. |
The reason it made a difference is because there’s a bundled Basic Auth handler that’s built into Event Espresso 4. If Application Passwords is installed then the A.P. plugin will take over for Authenticating REST API calls from the app. |
|
The support post ‘EE4 "Connection error. Unable to load data" on Android App’ 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.