Skip to content

Magento 2.1: Remove theme error "Unable to load theme by specified key: '5'" #5273

@andidhouse

Description

@andidhouse

Steps to reproduce

  1. Install Magento 2.1 by download
  2. Install custom theme by uploading it in app/design/frontend folder
  3. update magento, clear all caches, compile, deploy etc.
  4. Assign theme in backend
  5. Remove theme by deleting the folder again and deleting theme entry in database table "theme"

Expected result

  1. Be able to switch back to normal magento theme in backend and frontend.

Actual result

  1. In backend when trying to assign the "luma" or "blank" theme the error:
    "Something went wrong while saving this configuration: Unable to load theme by specified key: '5'"
    appears. By default there is no theme chosen now. Also after saving the the dropdown is empty.
    2 In Frontend the error is shown:

"Unable to load theme by specified key: '5'"

Maybe our fault was to delete the theme first and not unassign it before in the backend. But how can we solve this now?

3
2
1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions