Posted: March 2, 2020 at 4:08 pm
Hello, I’ve used the mobile app for a previous event, and it worked great. Now, I’ve tried to log in, and I’m getting the following error: “The content data is in the wrong format.” I found the troubleshooting document for this specific error message, and both of the action items are already done correctly on my website. The action items are copied below. How can I get the app working again? 1. The Mobile apps require that the permalinks are set to Post Name or similar scheme that uses %postname% (also known as Pretty Permalinks). The plain permalinks structure is not compatible with the API. 2. WP_DEBUG must be set to false. You can verify that WP_DEBUG is set to false by opening the wp-config.php file in a code editor. |
|
Hi there, Normally the above error means there are notices/warnings being thrown on the WP-JSON requests the app uses to communicate with your site, which is why we advise setting WP_DEBUG to false. If you install the WP REST API Log plugin and try to log in again with the app, that plugin will log the request and response. (Note you may need to enable logging in Settings -> REST API Log first) View the logs in Tools -> REST API log and see if anything stands out there. |
|
Hi Tony, I installed WP REST API Log plugin and checked to make sure it was enabled. I then tried to log into the app on my Apple iOS device, and I’m getting a different error message showing that my password credentials is incorrect. It is strange because I am able to log in to eventespresso.com just fine on my browser, using the same login credentials. I can see my login attempts on the WP REST API Log. What should I do? Thanks |
|
Hi, When you use the apps you actually need to use the WP admin credentials for your website. Your website doesn’t use the credentials from eventespresso.com. |
|
Thanks, Josh. Now that we have figured that out, I was able to log in. I am still seeing the error message “data is not in correct format”. I hit “OK”, and decided to click around on the bottom 4 icons (the A-Z, 1-9) and all of the events show up. When I click over to the most recent past event, I can view the first page, but clicking on “Attendees” causes that same error message to pop up. Your help is greatly appreciated! |
|
Did you view the logs in Tools -> REST API log to see if anything stands out there? |
|
Josh, I do not see anything that necessarily stands out. May I show you screenshots or provide you a URL address to help? Here is a sample of what I’m seeing on the REST API Log: https://getbigorgohome.com/wp-content/uploads/2020/03/Screen-Shot-2020-03-04-at-4.09.41-PM.png |
|
If you click the title of any of those items in the log you’ll be able to see the details of the request. There may be an error message within those. |
|
Here is the specific log (except for Response Body) for a single time I got the error message (however I do not see an error message within- perhaps you can!). The log title is Route: /ee/v4.8.36/registrations Request Headers: Query Parameters: Body Parameters: Response Headers: Response Body: |
|
Nothing out of the ordinary from the above, however, there are more requests sent that the above and it’s the response we’d need to see. It’s probably easier to view if we can look at the REST API logs directly on your site, if that’s ok you can send temp login details over using this form: https://eventespresso.com/send-login-details/ If you prefer not to thats fine but we’ll need to view the response from all of the requests sent when you log in with the app and get the error (there should be at least 4 requests added to the log when you log in) |
|
Hi Tony, I just filled out the form for you. Really appreciate your help with this! |
|
Hi again, I just wanted to check in and make sure you received the login details for the site. We have a major event taking place tomorrow and we will need to use the app. Is it possible to have these issues resolved Today? I am concerned that if we try to use the Scanner on the app, that it will not register. Thanks so much for your help. |
|
Hi there, Yes we received your login credentials and I’ve spent some time going through the logs to try and spot any issues, but those all looked correct. In the end I found that the requests sent from the Mobile app have notices/warnings thrown on them which means your server is set to The notices are not thrown during ‘nomral’ requests which is why this was tough to track down, but here’s this is what is breaking the apps:
That’s thrown at the beginning of the response and is not valid JSON, so the apps break. If you disable MainWP do the apps work as expected? You could set |
|
The support post ‘EE4 Mobile App Error Message’ 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.