Support

Home Forums Event Espresso Premium Data not in the correct format when using the Event Espresso app

Data not in the correct format when using the Event Espresso app

Posted: July 18, 2019 at 6:54 am


Richard_Borges

July 18, 2019 at 6:54 am

We are using EE4 to take registrations for our event and i’ve downloaded the iOS to see what the experience will be like for staff on the day, checkin people in! Whenever I go to look at the attendees, I get a message to say ‘The data is not in the correct format’. Any helps appreciated!


Tony

  • Support Staff

July 18, 2019 at 7:15 am

Hi there,

Firstly, great job testing the app before ‘the event day’ is on.

All too often people don’t actually test the app until right when they need it and as EE is installed on your own site there a lot that can cause problems.

Do you have an Android device to test on just to confirm if it works using the Android app?

The Apps use the sites REST API and I’ve just ran a quick check but didn’t see anything stand out, so it would be good to know if this is specific to the iOS app.

If you don’t have an Android device I can run a quick check if preferred, you’ll need to send login details I can use in the app using this form:

https://eventespresso.com/send-login-details/


Richard_Borges

July 18, 2019 at 7:36 am

Thanks Tony, I don’t have an Android device handy, so i’ve completed the form for you to check. Thanks for the assistance.


Tony

  • Support Staff

July 18, 2019 at 8:49 am

Ok, the reason it’s failing is there are notices being thrown on the request and you server is set to display them. For example:

<br />
<b>Notice</b>:  Array to string conversion in <b>/wp-includes/kses.php</b> on line <b>1311</b><br />
<br />
<b>Notice</b>:  Array to string conversion in <b>/wp-includes/kses.php</b> on line <b>1311</b><br />

Is being thrown on some requests and not others, when your server is set to display the errors and the notices are included in the request, it breaks the JSON response expected by the app, meaning it can’t read the data.

I don’t know why your getting notices (it would be good to investigate those further, it could be another plugin or the theme) as I don’t get any on my sites. But if you disable either WP_DEBUG on the site, or set your server to not display_errors by default the app should work.

For troubleshooting error/notices/warnings we recommend using this snippet:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

You add that to your wp-config.php file and set WP_DEBUG to true when you want to log the errors to /wp-content/debug.log so that you can troubleshoot, then set it to false when finished. (Note the debug.log file will be publicly accessible)

The support post ‘Data not in the correct format when using the Event Espresso 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.

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  Tony 1 month, 1 week ago ago

Topic Tags

Tagged: 

Notifications

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