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!
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:
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:
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)
Viewing 3 reply threads
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.