Support

Home Forums Event Espresso Premium EE App for ios – Credentials Mismatch

EE App for ios – Credentials Mismatch

Posted: December 5, 2017 at 11:13 pm

Viewing 28 reply threads


lupineart

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


Tony

  • Support Staff

December 6, 2017 at 4:29 am

Hi Derek,

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…

How long has it been working for you and not for them?

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.

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.


lupineart

December 6, 2017 at 7:51 am

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


Tony

  • Support Staff

December 6, 2017 at 2:14 pm

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?


lupineart

December 6, 2017 at 2:44 pm

Hi Tony,

I saw in wp-config.php:

define('WP_DEBUG', false);

I changed it to:

define('WP_DEBUG', true);

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


Tony

  • Support Staff

December 6, 2017 at 5:10 pm

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/


lupineart

December 6, 2017 at 8:55 pm

I submitted wp credentials.

I should note the app was working a few weeks ago.

Thanks, Derek


Tony

  • Support Staff

December 7, 2017 at 4:21 am

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:

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


lupineart

December 11, 2017 at 8:16 pm

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


Tony

  • Support Staff

December 13, 2017 at 5:17 am

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 define( 'WP_MEMORY_LIMIT', '96M' );

You can usually find the error logs within GoDaddy’s control panel and they have some documentation on how to find them here:

https://uk.godaddy.com/help/working-with-error-logs-1197


lupineart

December 13, 2017 at 11:22 am

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


lupineart

December 13, 2017 at 11:25 am

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…


lupineart

December 13, 2017 at 11:49 am

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


Tony

  • Support Staff

December 13, 2017 at 11:55 am

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)?

It’s already limited to 50 events if I recall correctly but I’ll check into this.

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…

Could be a lot of reasons for this, its possible the server can’t handle the amount of data although it should be fine.

One last thing, Tony… I got in touch with godady and server logs aren’t available to me as I am on shared hosting.

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 define('WP_DEBUG', false);

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.


lupineart

December 13, 2017 at 12:00 pm

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,


Tony

  • Support Staff

December 13, 2017 at 12:03 pm

Right now your getting:

PHP Notice: Constant WP_MEMORY_LIMIT already defined in wp-config.php on line 113

Which means define( 'WP_MEMORY_LIMIT', '96M' ); is in that file more than once, it’s not the cause but should be fixed (remove one and just make sure the remaining one sets the memory limit to 96M or above).

I’ll do some tests now.


lupineart

December 13, 2017 at 12:28 pm

Hey Tony – I just checked the file and it is certainly not in there twice. It is only on line 113…


Tony

  • Support Staff

December 13, 2017 at 2:17 pm

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 .htaccess file and see what is there, it should look like this – https://codex.wordpress.org/htaccess

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.


lupineart

December 13, 2017 at 2:53 pm

Hi Tony,

Yep, I have FTP access. .htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
	RewriteBase /
	RewriteRule ^/wp-content/endurance-page-cache/ - [L]
	RewriteCond %{REQUEST_METHOD} !POST
	RewriteCond %{QUERY_STRING} !.*=.*
	RewriteCond %{HTTP_COOKIE} !(wordpress_test_cookie|comment_author|wp\-postpass|wordpress_logged_in|wptouch_switch_toggle) [NC]
	RewriteCond %{DOCUMENT_ROOT}/wp-content/endurance-page-cache/$1/_index.html -f
	RewriteRule ^(.*)$ /wp-content/endurance-page-cache/$1/_index.html [L]
</IfModule>
<IfModule mod_expires.c>
	ExpiresActive On
	ExpiresByType image/jpg "access plus 1 year"
	ExpiresByType image/jpeg "access plus 1 year"
	ExpiresByType image/gif "access plus 1 year"
	ExpiresByType image/png "access plus 1 year"
	ExpiresByType text/css "access plus 1 month"
	ExpiresByType application/pdf "access plus 1 month"
	ExpiresByType text/javascript "access plus 1 month"
	ExpiresByType image/x-icon "access plus 1 year"
	ExpiresDefault "access plus 1 weeks"
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


Tony

  • Support Staff

December 14, 2017 at 6:45 am

Backup you .htaccess file to your computer so you can restore if needed edit the live file to leave only:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

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?


lupineart

December 14, 2017 at 8:47 am

Hi Tony,

Are you referring to this:

<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 webmaster@lupineart.com to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>

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


lupineart

December 18, 2017 at 2:27 pm

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


Tony

  • Support Staff

December 19, 2017 at 5:46 am

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.


lupineart

December 19, 2017 at 9:17 am

Ok, thanks Tony. I submitted the credentials. Thanks, Derek


Tony

  • Support Staff

December 19, 2017 at 10:37 am

Hi Derek,

The reason for the WP_MEMORY_LIMIT warning mentioned above was because the line in wp-config.php was after this:


/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

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:

/* That's all, stop editing! Happy blogging. */

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?


lupineart

December 19, 2017 at 10:43 am

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


Tony

  • Support Staff

December 19, 2017 at 12:02 pm

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.


lupineart

December 24, 2017 at 10:40 pm

Merry Christmas Tony!

I went through all of the plugins and the app ended up working
REST API Log plugin disabled. I went back and double checked by activating it and it broke it…

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


Tony

  • Support Staff

December 28, 2017 at 4:59 am

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.

Viewing 28 reply threads

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.

Event Espresso