serlo / serlo.org-legacy

Legacy implementation of https://serlo.org/
https://serlo.org/
Apache License 2.0
18 stars 3 forks source link

Error: Call to a member function getTimestamp() on boolean #488

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 4 years ago

Sentry Issue: SERLO-ORG-SERVER-4T

Error: Call to a member function getTimestamp() on boolean
  File "module/Api/src/ApiManager.php", line 287, in getUuidData
    ->getTimestamp()
  File "module/Api/src/Controller/ApiController.php", line 113, in uuidAction
    return new JsonModel($this->getApiManager()->getUuidData($uuid));
  File "data/classes.php.cache", line 85, in onDispatch
    public function attach(EventManagerInterface $events) { $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, array($this, 'prepareExceptionViewModel')); $this->listeners[] = $events->attach(MvcEvent::EVENT_RENDER_ERROR, array($this, 'prepareExceptionViewModel')); } public function setDisplayExceptions($displayExceptions) { $this->displayExceptions = (bool) $displayExceptions; return $this; } public function displayExceptions() { return $this->displayExceptions; } public function getMessage() { return $this->message; } public function setMessage($message) { $this->message = $message; return $this; } public function setPreviousMessage($previousMessage) { $this->previousMessage = $previousMessage; return $this; } public function getPreviousMessage() { return $this->previousMessage; } public function prepareExceptionViewModel(MvcEvent $e) { $error = $e->getError(); if (empty($error)) { return; } $result = $e->getResult(); if ($result instanceof Response) { return; } switch ($error) { cas {clipped}
  File "data/classes.php.cache", line 0, in call_user_func
    Zend\Mvc\Controller\AbstractActionController->onDispatch
  File "data/classes.php.cache", line 2, in triggerListeners
    namespace Zend\Mvc { use Zend\EventManager\EventsCapableInterface; interface ApplicationInterface extends EventsCapableInterface { public function getServiceManager(); public function getRequest(); public function getResponse(); public function run(); } } namespace Zend\EventManager { interface EventsCapableInterface { public function getEventManager(); } } namespace Zend\EventManager { interface EventManagerAwareInterface extends EventsCapableInterface { public function setEventManager(EventManagerInterface $eventManager); } } namespace Zend\ServiceManager { interface ServiceLocatorInterface { public function get($name); public function has($name); } } namespace Zend\ServiceManager { interface ConfigInterface { public function configureServiceManager(ServiceManager $serviceManager); } } namespace Zend\ServiceManager { interface FactoryInterface { public function createService(ServiceLocatorInterface $serviceLocator); } } namespace Zend\Stdlib { interface ParameterObjectInterface { public function  {clipped}
...
(8 additional frame(s) were not displayed)

Looks like we don't cover the case were there is no revision.

elbotho commented 1 year ago

End of life code. Won't fix.