Cannot log in: Uncaught ReferenceError: cordial is not defined

Help! I can’t log in! You have a bug on your login page! When I press “Sign In” it throws an error in the Javascript console!

theme.js?88096:9040 Uncaught ReferenceError: cordial is not defined
at HTMLButtonElement.onLoginSubmitClicked (theme.js?88096:9040)
at HTMLButtonElement.dispatch (vendor-head.js?88096:24)
at HTMLButtonElement.q.handle (vendor-head.js?88096:24)

Using latest Chrome browser.

Can’t log in either. Click the button to log in, but nothing happens.

EDIT: checked console, same exact error.

Their website always logs me out. And sometimes while I’m browsing after logging in, it will forget who I am when I view the cart or hit checkout.

Were you able to log back into your account? Please reach out to info@soylent.com, if you’re still having log in problems. Thanks!

I can log in using Firefox, but not Chrome for some reason.

This is because “https://d.info.soylent.com/track.js” is now being blocked by AdAware and uBlock Origin, and your “theme.js” code has this block:

function onLoginSubmitClicked(e) {
    e.preventDefault();

    var email = $(config.emailInput, config.customerLoginForm).val();

    cordial.identify(email);
    cordial.contact(email);

    $(config.customerLoginForm).submit();
  }

If “cordial” isn’t defined, it throws an exception, and the user can’t login.

Soylent should wrap the cordial code in a try/catch so it fails gracefully.

If you don’t want to turn off adblock … like me … after filling in your username and password, in the console execute this command

$('#customer_login').submit();