Error: Call to a member function getTimestamp() on boolean
Closed this issue · 1 comments
sentry-io commented
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
End of life code. Won't fix.