I've cloned a fresh Drupal install from Pantheon and I'm attempting to run it on my local machine. I've used Lando to clone a repo and pull the relevant files, db, and code. I attempt Lando Start and when accessing my site I get the following error
The website encountered an unexpected error. Please try again later.
Error: __clone method called on non-object in Drupal\Core\Routing\UrlGenerator->getRoute() (line 426 of core/lib/Drupal/Core/Routing/UrlGenerator.php).
Drupal\Core\Routing\UrlGenerator->getRoute('') (Line: 270)
Drupal\Core\Routing\UrlGenerator->generateFromRoute('', Array, Array, 1) (Line: 105)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('', Array, Array) (Line: 68)
Drupal\Core\Routing\RedirectDestination->get() (Line: 51)
Drupal\Core\Routing\RedirectDestination->getAsArray() (Line: 164)
Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber->makeSubrequest(Object, '/system/403', 403) (Line: 112)
Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber->on403(Object) (Line: 109)
Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase->onException(Object, 'kernel.exception', Object)
call_user_func(Array, Object, 'kernel.exception', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.exception') (Line: 219)
Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Object, Object, 1) (Line: 91)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
The site works fine on Pantheon. It's a fresh install with no configuration. No content, no additional users. I've attempted to set this up in a new directory, and I run a lando rebuild before pulling a second time and starting. Nothing seems to work. Pantheon support can't replicate the issue and the site is ok on the server, so I thought I'd turn to the community.
Help? Anyone able to point me in the right direction?
Turns out there was a problem with my SQL database from Pantheon, and I was getting an error as a logged in Drupal user. When I wasn't logged in the site would work fine. I had to drop all tables from the SQL DB I got from pantheon and then install the Drupal site from scratch. So it looks like the SQL DB from Pantheon didn't export correctly? Leaving this here in case anyone else experiences a similar issue.