Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering of the 404 Not Found page breaks because renderingMode is not available #4824

Closed
mhsdesign opened this issue Jan 8, 2024 · 1 comment · Fixed by #4827
Closed

Comments

@mhsdesign
Copy link
Member

mhsdesign commented Jan 8, 2024

@mhsdesign It seems this #4733 changes breaks rendering of the 404 Not Found page in Neos Demo (Neos.Demo:Document.NotFoundPage)

Exception:

Fatal error: Uncaught AssertionError: assert($renderingMode instanceof RenderingMode) in /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Neos_Fusion_ConvertUrisImplementation.php:128 Stack trace: #0 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Neos_Fusion_ConvertUrisImplementation.php(128): assert(false, 'assert($renderi...') #1 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(527): Neos\Neos\Fusion\ConvertUrisImplementation_Original->evaluate() #2 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(479): Neos\Fusion\Core\Runtime_Original->evaluateObjectOrRetrieveFromCache(Object(Neos\Neos\Fusion\ConvertUrisImplementation), 'header<Neos.Dem...', Array, Array) #3 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(868): Neos\Fusion\Core\Runtime_Original->evaluate('header<Neos.Dem...', Object(Neos\Fusion\FusionObjects\JoinImplementation), 'Exception') #4 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(534): Neos\Fusion\Core\Runtime_Original->evaluateProcessors('<svg class="hid...', Array, 'header<Neos.Dem...', Object(Neos\Fusion\FusionObjects\JoinImplementation)) #5 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(479): Neos\Fusion\Core\Runtime_Original->evaluateObjectOrRetrieveFromCache(Object(Neos\Fusion\FusionObjects\JoinImplementation), 'header<Neos.Dem...', Array, Array) #6 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(314): Neos\Fusion\Core\Runtime_Original->evaluate('header<Neos.Dem...', NULL, 'Exception') #7 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_FusionObjects_ComponentImplementation.php(96): Neos\Fusion\Core\Runtime_Original->render('header<Neos.Dem...') #8 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_FusionObjects_ComponentImplementation.php(46): Neos\Fusion\FusionObjects\ComponentImplementation_Original->render(Array) #9 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(527): Neos\Fusion\FusionObjects\ComponentImplementation_Original->evaluate() #10 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(479): Neos\Fusion\Core\Runtime_Original->evaluateObjectOrRetrieveFromCache(Object(Neos\Fusion\FusionObjects\ComponentImplementation), 'header', Array, Array) #11 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(314): Neos\Fusion\Core\Runtime_Original->evaluate('header', NULL, 'Exception') #12 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_FusionObjects_RendererImplementation.php(58): Neos\Fusion\Core\Runtime_Original->render('header') #13 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(527): Neos\Fusion\FusionObjects\RendererImplementation_Original->evaluate() #14 /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Fusion_Core_Runtime.php(479): Neos\Fusion\Core\Runtime_Original->evaluateObjectOrRetrieveFromCache(Object(Neos\Fusion\FusionObjects\RendererImplementation), 'root<Neos.Fusio...', Array, Array) #15 /var/www/html/Packages/Neos/Neos.Fusion/Classes/FusionObjects/Helpers/LazyProps.php(69): Neos\Fusion\Core\Runtime_Original->evaluate('root<Neos.Fusio...', Object(Neos\Fusion\FusionObjects\ComponentImplementation)) #16 /var/www/html/Packages/Neos/Neos.Fusion/Classes/FusionObjects/Helpers/LazyProps.php(93): Neos\Fusion\FusionObjects\Helpers\LazyProps->offsetGet('header') #17 [internal function]: Neos\Fusion\FusionObjects\Helpers\LazyProps->current() #18 /var/www/html/Packages/Neos/Neos.Fusion/Classes/FusionObjects/Helpers/LazyProps.php(118): iterator_to_array(Object(Neos\Fusion\FusionObjects\Helpers\LazyProps)) #19 [internal function]: Neos\Fusion\FusionObjects\Helpers\LazyProps->jsonSerialize() #20 /var/www/html/Packages/Framework/Neos.Flow/Classes/Error/Debugger.php(478): json_encode(Object(Neos\Fusion\FusionObjects\Helpers\LazyProps), 512, 1) #21 /var/www/html/Packages/Framework/Neos.Flow/Classes/Error/Debugger.php(341): Neos\Flow\Error\Debugger::getObjectSnippetPlaintext(Object(Neos\Fusion\FusionObjects\Helpers\LazyProps)) #22 /var/www/html/Packages/Framework/Neos.Flow/Classes/Error/DebugExceptionHandler.php(130): Neos\Flow\Error\Debugger::getBacktraceCode(Array) #23 /var/www/html/Packages/Framework/Neos.Flow/Classes/Error/DebugExceptionHandler.php(81): Neos\Flow\Error\DebugExceptionHandler->renderStatically(404, Object(AssertionError)) #24 /var/www/html/Packages/Framework/Neos.Flow/Classes/Error/AbstractExceptionHandler.php(128): Neos\Flow\Error\DebugExceptionHandler->echoExceptionWeb(Object(Neos\Flow\Mvc\Controller\Exception\InvalidControllerException)) #25 [internal function]: Neos\Flow\Error\AbstractExceptionHandler->handleException(Object(Neos\Flow\Mvc\Controller\Exception\InvalidControllerException)) #26 {main} thrown in /var/www/html/Data/Temporary/Development/SubContextDdev/Cache/Code/Flow_Object_Classes/Neos_Neos_Fusion_ConvertUrisImplementation.php on line 128

Is this a Neos or Neos.Demo issue?

Originally posted by @dlubitz in #4733 (comment)

@kitsunet
Copy link
Member

kitsunet commented Jan 8, 2024

Not a demo issue: \Neos\Neos\View\FusionExceptionView doesn't set a mode.

@mhsdesign mhsdesign changed the title Rendering of the 404 Not Found page breaks in Neos Demo Rendering of the 404 Not Found page breaks because renderingMode is not available Jan 8, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done ✅ in Neos 9.0 Release Board Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
2 participants