┌──────────────────────────────────────────────────────────────────────────────┐ │ $makeResult │ └──────────────────────────────────────────────────────────────────────────────┘ Pentity\Application\Result (9) ( protected 'isImmutable' -> boolean false protected '__options' -> array (3) [ 'status_code' => integer 0 'partially_done' => boolean false 'result' => null ] private 'code' -> integer 0 private 'debugMode' -> boolean false private 'exception' -> Pentity\DomainObject\Entity\Exception\EntityNotFoundException (7) ( protected 'code' -> integer 0 protected 'file' -> string (93) "/mnt/www/build_194.motor1.com/module/index/src/Domain/Service/Builder/Builder/MakeBuilder.php" protected 'line' -> integer 275 protected 'message' -> string (0) "" private 'previous' -> null private 'string' -> string (0) "" private 'trace' -> Debug Backtrace (14): 1: .../module/index/src/Domain/Service/Builder/Assembler/MakeAssembler.php:20 Index\Domain\Service\Builder\Builder\MakeBuilder::buildDetail(Index\Domain\Service\Builder\Builder\MakeBuilderOptions $options) class MakeAssembler extends AbstractAssembler { function assembleLogic(OptionsInterface $options) { $builder = $this->getBuilder(); $builder->buildDetail($options); $builder->buildModels($options); $builder->buildSubmodels($options); //$builder->buildAlternateLinks($options); if ($options->getOption('build_ratings')) { $builder->buildSubmodelRatings($options); } 2: .../pentity/assembler/src/Assembler/AbstractAssembler.php:70 Index\Domain\Service\Builder\Assembler\MakeAssembler::assembleLogic(Pentity\Utils\Options\OptionsInterface $options) $this->getEventManager()->triggerEvent($event); // if result have been got from cache getting it insted of generating new content $result = null; $exception = null; try { if (null === ($result = $event->getParam('result'))) { $this->assembleLogic($options); $result = $this->getBuilder()->getResult($options); if ($this->getBuilder()->storeResultToCache()) { $event->setParam('result', $result); } } } catch (\Throwable $exception) { // triggering error assemble event 3: .../module/index/src/Application/Service/MakeProvider/MakeProviderService.php:57 Pentity\Assembler\Assembler\AbstractAssembler::assemble($options = null) $result = []; //build make $builder = $this->builderManager->get('Index\Make'); $makeAssembler->setBuilder($builder); $makeResult = $makeAssembler->assemble([ 'filter_make' => $options->getOption('make_alias'), 'build_ratings' => true ]); $result['make'] = $makeResult['makes']->get(0); if ($options->getOption('with_content')) { // building 5 video $builder = $this->builderManager->get('Index\Article'); 4: .../pentity/application/src/AbstractService.php:79 Index\Application\Service\MakeProvider\MakeProviderService::executeLogic(Pentity\Utils\Options\OptionsInterface $options) try { $serviceEvent->setParams([ 'invoke_options' => $invokeOptions ]); $this->getEventManager()->triggerEvent($serviceEvent); $result = $serviceEvent->getAppResult(); $result = $result ?: $this->executeLogic($invokeOptions); $serviceEvent->setAppResult($result); // partial errors logic if ($this->errors->hasErrors()) { $status = self::STATUS_PARTIALLY_DONE; $serviceEvent->setName(ServiceEventInterface::EVENT_PARTIAL_ERROR); $serviceEvent->setParam('errors', $this->errors); 5: .../module/index/src/Controller/MakesController.php:122 Pentity\Application\AbstractService::execute(array $rawOptions = array()) $edition = $sl->get('EditionConfig')->getCurrentEdition(); $provider = $this->getServiceLocator() ->get('Application\Manager') ->get('Index\MakeProvider'); $makeResult = $provider->execute([ 'make_alias' => $this->params()->fromRoute('make_alias'), 'with_content' => true ]); if (!$makeResult->getStatus()) { if ($edition->getCode() == 'ev_us') { $isAmp = $this->params()->fromRoute('amp'); 6: .../pentity-modules/zendmvc/src/Controller/AbstractActionController.php:64 Index\Controller\MakesController::detailAction() if (!method_exists($this, $method)) { throw new HttpException(404, 'Page not found'); } // catching php exceptions also //ErrorHandler::start(E_ERROR); $this->beforeAction(); $response = $this->$method(); $this->afterAction(); $pageId = $this->getMCAService()->getMCA(); // throwing php exception if occurred //ErrorHandler::stop(true); } catch (HttpException $ex) { $this->response->setStatusCode($ex->getCode()); 7: .../zendframework/zend-eventmanager/src/EventManager.php:322 Pentity\Module\Mvc\Zend\Controller\AbstractActionController::onDispatch(Zend\Mvc\MvcEvent $e) $event->stopPropagation(false); // Execute listeners $responses = new ResponseCollection(); foreach ($listOfListenersByPriority as $listOfListeners) { foreach ($listOfListeners as $listeners) { foreach ($listeners as $listener) { $response = $listener($event); $responses->push($response); // If the event was asked to stop propagating, do so if ($event->propagationIsStopped()) { $responses->setStopped(true); return $responses; } 8: .../zendframework/zend-eventmanager/src/EventManager.php:179 Zend\EventManager\EventManager::triggerListeners(Zend\EventManager\EventInterface $event, callable $callback = null) } /** * @inheritDoc */ public function triggerEventUntil(callable $callback, EventInterface $event) { return $this->triggerListeners($event, $callback); } /** * @inheritDoc */ public function attach($eventName, callable $listener, $priority = 1) { 9: .../zendframework/zend-mvc/src/Controller/AbstractController.php:106 Zend\EventManager\EventManager::triggerEventUntil(callable $callback, Zend\EventManager\EventInterface $event) $e->setName(MvcEvent::EVENT_DISPATCH); $e->setRequest($request); $e->setResponse($response); $e->setTarget($this); $result = $this->getEventManager()->triggerEventUntil(function ($test) { return ($test instanceof Response); }, $e); if ($result->stopped()) { return $result->last(); } return $e->getResult(); } 10: .../zendframework/zend-mvc/src/DispatchListener.php:138 Zend\Mvc\Controller\AbstractController::dispatch(Zend\Stdlib\RequestInterface $request, Zend\Stdlib\ResponseInterface $response = null) } $request = $e->getRequest(); $response = $application->getResponse(); $caughtException = null; try { $return = $controller->dispatch($request, $response); } catch (\Throwable $ex) { $caughtException = $ex; } catch (\Exception $ex) { // @TODO clean up once PHP 7 requirement is enforced $caughtException = $ex; } if ($caughtException !== null) { 11: .../zendframework/zend-eventmanager/src/EventManager.php:322 Zend\Mvc\DispatchListener::onDispatch(Zend\Mvc\MvcEvent $e) $event->stopPropagation(false); // Execute listeners $responses = new ResponseCollection(); foreach ($listOfListenersByPriority as $listOfListeners) { foreach ($listOfListeners as $listeners) { foreach ($listeners as $listener) { $response = $listener($event); $responses->push($response); // If the event was asked to stop propagating, do so if ($event->propagationIsStopped()) { $responses->setStopped(true); return $responses; } 12: .../zendframework/zend-eventmanager/src/EventManager.php:179 Zend\EventManager\EventManager::triggerListeners(Zend\EventManager\EventInterface $event, callable $callback = null) } /** * @inheritDoc */ public function triggerEventUntil(callable $callback, EventInterface $event) { return $this->triggerListeners($event, $callback); } /** * @inheritDoc */ public function attach($eventName, callable $listener, $priority = 1) { 13: .../zendframework/zend-mvc/src/Application.php:332 Zend\EventManager\EventManager::triggerEventUntil(callable $callback, Zend\EventManager\EventInterface $event) if ($event->getError()) { return $this->completeRequest($event); } // Trigger dispatch event $event->setName(MvcEvent::EVENT_DISPATCH); $event->stopPropagation(false); // Clear before triggering $result = $events->triggerEventUntil($shortCircuit, $event); // Complete response $response = $result->last(); if ($response instanceof ResponseInterface) { $event->setName(MvcEvent::EVENT_FINISH); $event->setTarget($this); $event->setResponse($response); 14: <ROOT>/index.php:52 Zend\Mvc\Application::run() 'php' => [ 'settings' => require 'config/php.config.php', ], ]); if (!defined('APP_NO_RUN')) { ZendApplciation::init(require 'config/application.config.php')->run(); } ) private 'firstCall' -> boolean false private 'message' -> string (36) "<ul><li>Exception occurred</li></ul>" private 'pluginResults' -> Pentity\Utils\Options\DefaultOptions (3) ( protected 'isImmutable' -> boolean false protected '__options' -> array (0) [] private 'firstCall' -> boolean true ) private 'status' -> boolean false ) ════════════════════════════════════════════════════════════════════════════════ Called from .../module/index/src/Controller/MakesController.php:149 [Index\Controller\MakesController->detailAction()]