ministryofjustice / cla_frontend

CLA Front End
http://ministryofjustice.github.io/cla_docs/
MIT License
3 stars 4 forks source link

Error: Call to a member function getExpires() on null #954

Open sentry-io[bot] opened 5 months ago

sentry-io[bot] commented 5 months ago

Sentry Issue: MOJ-INTRANET-CP-36

Error: Call to a member function getExpires() on null
  File "/var/www/html/public/app/mu-plugins/moj-auth/moj-auth.php", line 136, in MOJ\Intranet\Auth::handlePageRequest
    'expiry' => $oauth_access_token->getExpires(),
  File "/var/www/html/public/app/mu-plugins/moj-auth/moj-auth.php", line 169, in include_once
    $auth->handlePageRequest('reader');
  File "/var/www/html/public/app/mu-plugins/bedrock-autoloader.php", line 15, in include_once
    new Autoloader();
  File "/wp-settings.php", line 442, in require_once
    include_once $mu_plugin;
  File "-config.php", line 9, in require_once
    require_once ABSPATH . 'wp-settings.php';
...
(7 additional frame(s) were not displayed)
EarthlingDavey commented 5 months ago

Sorry, I've added this to the wrong repo. Not sure if I can delete it 😅