# Fatal error: Uncaught Auth0\\SDK\\Exception\\ CoreException: Invalid domain

**URL:** <https://community.auth0.com/t/fatal-error-uncaught-auth0-sdk-exception-coreexception-invalid-domain/80707>\
**Category:** Get Help\
**Created:** [March 29, 2022, 1:47pm UTC](https://community.auth0.com/t/fatal-error-uncaught-auth0-sdk-exception-coreexception-invalid-domain/80707 "2022-03-29T13:47:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank.scholz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/frank.scholz/32/33622_2.png) [@frank.scholz](https://community.auth0.com/u/frank.scholz)\
**Post date:** [March 29, 2022, 1:47pm UTC](https://community.auth0.com/t/fatal-error-uncaught-auth0-sdk-exception-coreexception-invalid-domain/80707/1 "2022-03-29T13:47:33Z")

</div>

Hello!

I created an .env-File with copy&paste from “Configure the SDK!” [PHP: Getting Started using Auth0-PHP](https://auth0.com/docs/libraries/auth0-php#configure-the-sdk).

Now I got an Error:

" **Fatal error** : Uncaught Auth0\SDK\Exception\CoreException: Invalid domain!..\>\_\_construct(Array) #1 {main}…"

Into the .env the domain is with “https://”

Where is the mistake?

F

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 29, 2022, 9:30pm UTC](https://community.auth0.com/t/fatal-error-uncaught-auth0-sdk-exception-coreexception-invalid-domain/80707/3 "2022-03-29T21:30:50Z")

</div>

Hey there @frank.scholz welcome to the community!

Try omitting `https://` from the domain value in your `.env` - I _believe_ that should do the trick!

Let us know 🙂

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 22, 2022, 9:52pm UTC](https://community.auth0.com/t/fatal-error-uncaught-auth0-sdk-exception-coreexception-invalid-domain/80707/4 "2022-04-22T21:52:51Z")

</div>


