ThemeManager fails when removing a theme

Description

Steps to reproduce

  • Add a theme to your Integrated installation

  • Assign the theme to a website

  • Add a page to the website

  • Remove the theme from your Integrated installation

  • Result: exception on all pages of the channel. In this case the default theme should be used automatically

InvalidArgumentException in ThemeManager.php line 122:
Theme "thompson" not exists.
in ThemeManager.php line 122
at ThemeManager->setActiveTheme('thompson') in WebsiteConfigurationListener.php line 91
at WebsiteConfigurationListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
at call_user_func(array(object(WebsiteConfigurationListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher)) in WrappedListener.php line 61
at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
at call_user_func(object(WrappedListener), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher)) in WrappedListener.php line 61
at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))

Requirements

  • Removing a theme or removing a base view from a theme shouldn't throw an exception, but should fallback to the default theme, default base view

  • Don't store the full path of a view, so changing a theme should affect all pages automatically

Environment

None

Deployment actions

None

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Client

Integrated Marijn

External issue ID

None

Follow up date

None

Code reviewer

Koen Prins

Developer

Ger Jan van den Bosch

Plan date

None

Max. hours

None

Error message

None

Min. hours

None

Product owner

Marijn Otte

Refiner

None

Switches

None

Dev hour estimate

None

Story Points

2

Time tracking

4h 45m

Epic Link

Sprint

None

Fix versions

Due date

2017/05/09

Priority

Major
Configure