Can't get login to work following quick start guide

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

I’ve been following this Auth0 PHP SDK Quickstarts: Add Login to your PHP application and on step 4, when configuring and running login.php I receive the following error:

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



   * 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!

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:

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!

Done! Here is the link PHP Fatal error on step 4 Auth0 Quickstart Guide · Issue #81 · auth0-samples/auth0-php-web-app · GitHub

1 Like

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

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

Everything’s fine on your side @asena :slight_smile:

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