# Sign ups not working with custom Wordpress database connection

**URL:** <https://community.auth0.com/t/sign-ups-not-working-with-custom-wordpress-database-connection/107924>\
**Category:** Get Help\
**Tags:** custom-database-connections, connections\
**Created:** [May 26, 2023, 8:14pm UTC](https://community.auth0.com/t/sign-ups-not-working-with-custom-wordpress-database-connection/107924 "2023-05-26T20:14:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![peter.fernandez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peter.fernandez/32/45477_2.png) [@peter.fernandez](https://community.auth0.com/u/peter.fernandez)\
**Post date:** [May 31, 2023, 9:39am UTC](https://community.auth0.com/t/sign-ups-not-working-with-custom-wordpress-database-connection/107924/4 "2023-05-31T09:39:25Z")

</div>

> [@developer6](#):
>
> To configure custom database, we’re using [the login script](https://raw.githubusercontent.com/auth0/wp-auth0/4.4.0/lib/scripts-js/db-login.js) and [the get user script](https://raw.githubusercontent.com/auth0/wp-auth0/4.4.0/lib/scripts-js/db-get-user.js) according to the guide [here](https://auth0.com/docs/customize/integrations/cms/wordpress-plugin/user-migration-in-login-by-auth0#set-up-and-configuration). I’ve compared the scripts we’re using with the ones provided and they’re identical.

Thanks for the update @developer6 🙂

The link you shared is to the user migration (to Auth0) guide. Does that mean you’re migrating your users to Auth0? Rather that leaving users credentials in your custom (credential) store? For user migration to Auth0, the custom database _login_ and _get user_ scripts should suffice. Though if you want to support a user resetting their password as part of a login attempt, you will also likely need to implement _change password_ too (see [Change Password Script Templates](https://auth0.com/docs/authenticate/database-connections/custom-db/templates/change-password) for details). Until a user is migrated to Auth0, password reset will typically be performed against your custom (credential) store.

However if you are not performing user migration and you are also looking to support Signup via Auth0, you will typically need to implement a _create_ script (see [Create Script Templates](https://auth0.com/docs/authenticate/database-connections/custom-db/templates/create) for more details) as well. In this situation - i.e. where users are not being migrated - the same would go for _change password_ too.

> I’ve reviewed the logs again and now I see that not all users can login. There are lots of `Unexpected token < in JSON at position 0` and `Unknown client` errors at login, sign up and password change events.

You might want to take a look at the troubleshooting section of the user migration guide [here](https://auth0.com/docs/customize/integrations/cms/wordpress-plugin/user-migration-in-login-by-auth0#troubleshooting). This describes potential solutions for a number of situations, including the one it sounds like you’re currently experiencing (see [here](https://auth0.com/docs/customize/integrations/cms/wordpress-plugin/user-migration-in-login-by-auth0#unexpected-token-in-json-at-position-0) for details).

Hope this helps 🕶

---

_[View the full topic](https://community.auth0.com/t/sign-ups-not-working-with-custom-wordpress-database-connection/107924)._
