Support

Home Forums Event Espresso Premium Error connection App android

Error connection App android

Posted: February 8, 2019 at 2:24 am


ocouvin

February 8, 2019 at 2:24 am

Hello,

Wordpress : 4.8
Event Expresso 4.9.*

We have installed event expresso 4.9.77.p . The website is a multi-network.
When we test the connection with app android We have this errors “Unabled to load Data”.

We have follow many links :
https://eventespresso.com/wiki/ee4-event-apps/#troubleshooting
https://eventespresso.com/topic/app-error-connection-error-unable-to-load-data/

We have :
-installed a rest plugin on website, the requests are OK
-disabled theme
-disabled all plugins without Event Espresso
-disabled HTTPS
-change htaccess
-check permalinks

Have you a idea ? is it problem with the multi network ?

Thank for you help


Josh

  • Support Staff

February 8, 2019 at 9:31 am

Hi,

The problem appears to be the server is returning a 500 internal server for any requests going to /wp-json/.

Can you check your server’s php error log to find the error message? The fix may be as simple as bumping the WordPress site’s memory limit, but the first step is to check for errors. See also https://eventespresso.com/wiki/troubleshooting-checklist/


ocouvin

February 12, 2019 at 9:05 am

Hi ,

I have already test this solutions (https://eventespresso.com/wiki/troubleshooting-checklist/) nothing working . I have add a rest plugin in website.
For example when i entered a bad password or login i have this error “Bad password…” and in my plugin i have the rest call.
But when i enterred the good password/login, i am not the rest call

have you a other idea ?

Thank


Josh

  • Support Staff

February 12, 2019 at 9:29 am

In this case you do not need to add a rest plugin to the website because Event Espresso uses the REST API that’s built into WordPress core.

The important thing you’ll need to check is the php error log. I mentioned before the server is returning a 500 internal server for any requests going to /wp-json/, and in order to get to the bottom of this we’ll need to know the error message that’s logged when that request is made.


ocouvin

February 12, 2019 at 9:39 am

We’ll check the logs.
Is there a minimum PHP version needed ?
This server uses PHP 5.4

http://test.chartreuse.fr/wp-json/ee/v4.8.36/events is OK
http://test.chartreuse.fr//wp-json/ee/v4.8.36/site_info is OK

ini_set(‘memory_limit’, ‘512M’); solved the main pb, but we still have trouble, the application show the same “Unable to load data” with a good password.


Josh

  • Support Staff

February 12, 2019 at 9:42 am

I can advise to upgrade to at least PHP 7.1.

With regards to the “unable to load data” error, is WP_DEBUG set to false?


ocouvin

February 12, 2019 at 9:50 am

Ok, here are he logs :
– error : nothing
– access :
92.184.112.140 – – [12/Feb/2019:17:51:15 +0100] “HEAD / HTTP/1.1” 200 1285 “-” “EventEspresso/2.29”


That’s ALL, nothing else.
92.184.112.140 is the IP of my smartphone.

Any suggestion ?


Josh

  • Support Staff

February 12, 2019 at 9:56 am

That’s an access log, you’ll need to look at the error log. I did ask if WP_DEBUG is set to false, if it’s set to true that could be causing the trouble.


ocouvin

February 12, 2019 at 10:11 am

Log with an iPhone :
“HEAD / HTTP/1.1” 200 1285 “-” “EventEspressoHD/2 CFNetwork/976 Darwin/18.2.0”

Same kind of results.

It’s not possible to upgrade PHP, but as JSON is Ok, it’s not an option at that time.

define(‘WP_DEBUG’, false); // Set as we are in prod env

I’ll try your suggestion


define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
        @ini_set( 'display_errors', 0 );
        define( 'WP_DEBUG_LOG', true );
        define( 'WP_DEBUG_DISPLAY', false );
}


ocouvin

February 12, 2019 at 10:14 am

can we give you admin credential on this WP ?


Josh

  • Support Staff

February 12, 2019 at 10:17 am

I didn’t suggest to change WP_FALSE to true. It needs to be false.

You could send WP-admin credentials via this form, but I’m not sure what I will do with them as this appears to be a server environment issue, not a WordPress issue.


ocouvin

February 13, 2019 at 1:33 am

Hi,
The suggestion for wp_debug to true is there :
https://eventespresso.com/wiki/troubleshooting-checklist/
It’s a temporary solution, to see what happens.

Now here’s the point :
1. We tried all items in your checklist (cf our first post)
2. We made 500 errors disapear
3. We provided you examples / links that proves tha JSON response works

=> Why do you say that “it appears that it is a server issue” ? JSON response retrieve content and 200 status.

The last action we can make is re-installing a fresh WP, with a fresh environment in PHP 7.1. But we’ll need an extra licence for a new domain in order to test the Android app functionnality.


ocouvin

February 13, 2019 at 2:19 am

Hi,

to work on a multisite WP, EE MUST be activated on the network. We wanted to make it work only on the french version.
“Activating the plugin on the network” make Android App working.
You can add a “[SOLVED]” label on the title.

cheers.

End of the thread.

The support post ‘Error connection App android’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  ocouvin 4 months, 1 week ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!