Skip to content

Added theme is not registered during production mode #2797

@moleman

Description

@moleman

It seems that added / installed themes are not registered if they are added to a site which is already installed and is set to production mode. By registered I mean that they are not added to the theme table.

After looking at the code it seems that themes are registered differently depending on mode.

In developer mode:

In production mode:

This means that if you have a running site in production mode and you decide to install a new theme it will not be registered in the theme table which means that it will not be selectable in the admin.

Steps to reproduce:

  1. Install Magento2, run the installation wizard
  2. Set deploy mode to production, php bin/magento deploy:mode:set production
  3. Add a theme with: composer require
  4. Run php bin/magento setup:upgrade

Expected result:

The installed theme should be registered in the theme table.

Actual result:

The installed theme is not registered in the theme table.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions