# Can't get login to work following quick start guide

**URL:** <https://community.auth0.com/t/cant-get-login-to-work-following-quick-start-guide/107286>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [May 18, 2023, 1:45pm UTC](https://community.auth0.com/t/cant-get-login-to-work-following-quick-start-guide/107286 "2023-05-18T13:45:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![asena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/asena/32/47349_2.png) [@asena](https://community.auth0.com/u/asena)\
**Post date:** [May 18, 2023, 1:45pm UTC](https://community.auth0.com/t/cant-get-login-to-work-following-quick-start-guide/107286/1 "2023-05-18T13:45:17Z")

</div>

Hi all! This is probably a pretty simple issue, but I’m not expert 😕

I’ve been following this [Auth0 PHP SDK Quickstarts: Add Login to your PHP application](https://auth0.com/docs/quickstart/webapp/php/interactive) and on step 4, when configuring and running login.php I receive the following error:

```auto
PHP Fatal error: Uncaught Error: Call to a member function login() on null in /home1/queversp/public_html/login.php:11
Stack trace:
#0 {main}
  thrown in /home1/queversp/public_html/login.php on line 11

```

The login.php code is

```auto
<?php

  declare(strict_types=1);

  /**
   * Prepare application session and redirect to the Auth0 Universal Login page.
   *
   * The user will be redirected to your callback route to complete the authentication flow.
   */

  header(sprintf('Location: %s', $sdk->login()));

```

I don’t know what I’m missing, can anyone help? Thanks!

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [May 19, 2023, 2:14am UTC](https://community.auth0.com/t/cant-get-login-to-work-following-quick-start-guide/107286/2 "2023-05-19T02:14:27Z")

</div>

Hi @asena

Welcome to the Auth0 Community!

In order to handle that most effectively, can I ask you to raise it as a GitHub issue here:

> **[Issues · auth0-samples/auth0-php-web-app](https://github.com/auth0-samples/auth0-php-web-app/issues)**
>
> Auth0 Integration Samples for PHP Web Applications - Issues · auth0-samples/auth0-php-web-app

So we can work on that directly with the quickstart maintainer and solve it in the shortest period? Once you have a link, please share it here so we can ping them. Thank you!

---

<div class="post-metadata">

**Author:** ![asena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/asena/32/47349_2.png) [@asena](https://community.auth0.com/u/asena)\
**Post date:** [May 19, 2023, 2:32am UTC](https://community.auth0.com/t/cant-get-login-to-work-following-quick-start-guide/107286/3 "2023-05-19T02:32:10Z")

</div>

> [@asena](#):
>
> Hi all! This is probably a pretty simple issue, but I’m not expert 😕
> 
> I’ve been following this [Auth0 PHP SDK Quickstarts: Add Login to your PHP application](https://auth0.com/docs/quickstart/webapp/php/interactive) and on step 4, when configuring and running login.php I receive the following error:
> 
> ```auto
> PHP Fatal error: Uncaught Error: Call to a member function login() on null in /home1/queversp/public_html/login.php:11
> Stack trace:
> #0 {main}
> thrown in /home1/queversp/public_html/login.php on line 11
> 
> ```
> 
> The login.php code is
> 
> ```auto
> <?php
> 
> declare(strict_types=1);
> 
> /**
> * Prepare application session and redirect to the Auth0 Universal Login page.
> *
> * The user will be redirected to your callback route to complete the authentication flow.
> */
> 
> header(sprintf('Location: %s', $sdk->login()));
> 
> ```
> 
> I don’t know what I’m missing, can anyone help? Thanks!

Done! Here is the link [PHP Fatal error on step 4 Auth0 Quickstart Guide · Issue #81 · auth0-samples/auth0-php-web-app · GitHub](https://github.com/auth0-samples/auth0-php-web-app/issues/81)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 19, 2023, 7:27am UTC](https://community.auth0.com/t/cant-get-login-to-work-following-quick-start-guide/107286/4 "2023-05-19T07:27:22Z")

</div>

@dawid.matuszczyk can you ping the repo maintainers? Thanks!

---

<div class="post-metadata">

**Author:** ![asena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/asena/32/47349_2.png) [@asena](https://community.auth0.com/u/asena)\
**Post date:** [May 19, 2023, 12:48pm UTC](https://community.auth0.com/t/cant-get-login-to-work-following-quick-start-guide/107286/5 "2023-05-19T12:48:04Z")

</div>

Sorry, I don’t know how to do that.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 19, 2023, 12:56pm UTC](https://community.auth0.com/t/cant-get-login-to-work-following-quick-start-guide/107286/6 "2023-05-19T12:56:14Z")

</div>

Everything’s fine on your side @asena🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 2, 2023, 12:56pm UTC](https://community.auth0.com/t/cant-get-login-to-work-following-quick-start-guide/107286/7 "2023-06-02T12:56:30Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
