Posted: December 5, 2017 at 11:13 pm
|
Hey guys, I’m running into troubles with the app. It has been working fine for me, the other two users have experienced login troubles. Now I am… I didn’t have the Application Passwords plugin installed, so I did that. I got the error about the .htaccess file, sorted that out, error is gone. I don’t generate passwords because I don’t need multiple passwords – I just want to use the app with my regular wp login credentials. My url is https://lupineart.com. I also tried http://lupineart.com My user is Derek. I also tried derek. I have shown my password so I know it’s right, reset the password as an extra measure. I’m not entering the password incorrectly. I also tried another user with the same methods on another ios device. I keep getting Credentials Mismatch. I host with godaddy. https://www.dropbox.com/s/nq8o9gridxwgt32/Screenshot%202017-12-05%2022.12.24.png?dl=0 https://www.dropbox.com/s/y0lj1jyyptkq1s1/Screenshot%202017-12-05%2022.12.44.png?dl=0 Thanks, Derek |
Hi Derek,
How long has it been working for you and not for them?
If you are using your standard credentials, why have you installed the Applications Passwords plugin? Install the WP REST API log plugin and try to log into with the app, then check the log and see if shows any errors on the login request. |
|
|
Hi Tony, This is what’s in the log after trying to log in with the app. “Jess” is the user that is using the app, I’m logged in with a different user. https://www.dropbox.com/s/8l1wu9okkjdbczo/Screenshot%202017-12-06%2006.50.43.png?dl=0 Thanks, Derek |
Do you have WP_DEBUG enabled on the site? If so, try disabling it and retest logging in, does it work then? Any errors thrown in the server’s error logs when you try to log in? Do you have an Android device? If so does the login work using that? |
|
|
Hi Tony, I saw in wp-config.php:
I changed it to:
I get this error in the app: “The data is not in the correct format. The data couldn’t be read because it isn’t in the correct format.” I tested another user on an android device and same credentials error. I changed wp-config.php back to what it was. Thanks, Derek |
With WP_DEBUG enabled the JSON API request will also contain any errors being thrown by your site, which will break the output so I needed to confirm that was disabled, settings it to true will often cause the error you mentioned. I’d like to try logging in with the app and view the response from your server, can you send me temporary login details I can use on the app? (And possible the wp-admin to view the REST API log) You can use this form: https://eventespresso.com/send-login-details/ |
|
|
I submitted wp credentials. I should note the app was working a few weeks ago. Thanks, Derek |
Hmm strange, I can see the requests and the output seems valid as far as I can see. Did you check the server’s error log to see if any are being thrown during the request? In regards to if working a few weeks ago, what has changed on the site in that time? Note, before you say nothing, have you updated any plugins/the theme? Install new plugins? You can rule out a conflict by following the steps here: |
|
|
Hi Tony, So you could log in, but couldn’t log in through the app as well? Can you point me in the right direction for checking error logs? I haven’t done that before. I’m with godaddy, if that makes a difference. I disabled the new plugins I recently installed, but made no difference. I’ll have to spend more time on checking out the others. Thanks, Derek |
Yes, I can log into the site, and log into the app, but no data loads on the app. I then ran some tests on your sites REST API and I’m getting an internal error 500 on the requests – http://take.ms/C1wjk Generally, this would point to the server running out of memory and to fix that you can follow the steps here: https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP I’d recommend using at least 96M, so You can usually find the error logs within GoDaddy’s control panel and they have some documentation on how to find them here: |
|
|
Thanks, Tony. I’ve noticed when everything was working, that the app took a really long time to load all of the data. Is there a way to limit the data it loads (i.e. just upcoming events)? Or do you have any other suggestions? Do you think this also points to running out of memory? Thanks, Derek |
|
I increased the memory as suggested in wp-config but I’m still getting the credentials mismatch error. I should note that when I go to log in, it takes a long time before I get the error – maybe 30-45 seconds… |
|
One last thing, Tony… I got in touch with godady and server logs aren’t available to me as I am on shared hosting. Any other suggestions on where to go from here? Thanks, Derek |
It’s already limited to 50 events if I recall correctly but I’ll check into this.
Could be a lot of reasons for this, its possible the server can’t handle the amount of data although it should be fine.
Erm… what? (not sure what else to say there) You should have access to the error logs, shared or not. Sounds like some confusion on what was requested tbh. In your wp-config.php file, find the line that current declares WP_DEBUG, it’ll likely be something like Replace that line with this snipptet, it enables WP_Debug but rather than show errors it logs them to a file so we can view them. https://gist.github.com/Pebblo/8787f5530ea777c84aaf62f075e55b32 Once that’s been done I’ll retest for you and see if any errors show. |
|
|
Hi Tony, I’ll check with someone else at godaddy. The person I dealt with said the error logs are no longer available in cpanel because we are on shared hosting. I’ll figure it out later today. I changed the wp-config.php as you suggested. I also tried the app again after that. Thanks, |
Right now your getting:
Which means I’ll do some tests now. |
|
|
Hey Tony – I just checked the file and it is certainly not in there twice. It is only on line 113… |
In that case, its being declared elsewhere and the notice is now throwing because it also been added to wp-config.php (which is where its expected to go). I’m guessing GoDaddy are loading their own config and setting the constant before wp-config.php. You have FTP access to the site, correct? Can you take a look in your sites If not, what do you have? If you are unsure you can send temp FTP details using this form: https://eventespresso.com/send-login-details/ and I’ll take a look. |
|
|
Hi Tony, Yep, I have FTP access. .htaccess:
|
Backup you
Then check your site continues to load. If you load this URL, scroll down to the bottom and you’ll see an error, I believe that’s what is causing the problem with the app. Did you manage to get the error logs? |
|
|
Hi Tony, Are you referring to this:
I restored the .htacess file after doing that. Here is the error log: error-log Let me know if there’s anything else I can do to move this along. Thanks, Derek |
|
Hi Tony, I appreciate you spending the time you have so far on this, but am hoping you can continue helping me resolve. Do you have any advice on where to go from here? Thanks, Derek |
Apologies for the delay. Can you resubmit login details with FTP creds? I’d like to take a quick look and see if I can spot anything out of the ordinary. Note that currently it’s looking like a server config issue so it may be required to purchase a support token for us to troubleshoot this, but I’ll take a quick look first and see. |
|
|
Ok, thanks Tony. I submitted the credentials. Thanks, Derek |
Hi Derek, The reason for the
That wp-settings.php file sets the default memory limit for you so you need to add any additional settings before that, above the line that has:
I should have included that above, but I’ve moved that code up a few lines to stop the notice. When testing your REST API I couldn’t authenticate so I added the code from the troubleshooting section: https://eventespresso.com/wiki/ee4-event-apps/#troubleshooting To your .htaccess file and can now authenticate with your server, but when logging in it looks like the request is timing out, can you try logging in now and see if you get a different response that before? |
|
|
Hi Tony, In the app, I get the same error: “Credentials Mismatch” In the REST API Log Entries, it looks like I get the same errors as what you got a few minutes ago. What do you think? Thanks, Derek |
I think you would be best confirming if the app works without any other plugin activated other than EE, and possibly using one of the default themes such as twentyseventeen. The request looks valid in the REST API log, so I suspect either something is hijacking the request made by the app at some point (plugin/theme conflict) or there’s something on the server closing the connection. To check for a plugin conflict you need to de-activate all non-EE plugins and try log into the app then, if it still doesn’t work, switch to a default theme and retest. If you prefer not to do that on the live site, you can clone the site to a staging site and test there, I would use something like Duplicator but there are plenty of other methods for cloning a site. The test site can be a subdomain site on the same server so your testing on the same environment or another server/locally if preferred although the subdomain would be best. |
|
|
Merry Christmas Tony! I went through all of the plugins and the app ended up working So I don’t quite understand, because I only installed that plugin when you asked me to earlier in this thread. At any rate, it seems to be working now. Thanks, Derek |
Merry Christmas 🙂 Hmm, yeah that’s very strange! As its working, we’ll leave it as is but please do let me know if you run into this again. |
|
The support post ‘EE App for ios – Credentials Mismatch’ 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.