Hi.
I'm getting the error
"main.CRITICAL: LogicException: Unable to load theme by specified key: '40' in /var/www/clients/client0/web1/web/vendor/magento/framework/View/Design/Theme/FlyweightFactory.php:69"
on a magento multistore solution. The new Store has the same setup as all the other stores, refering to an existing theme (i tried a few other... non of them worked with this storecode).
The Scope ID is 27.
select * from core_config_data where path like '%theme_id%' output's this:
MariaDB [c0_shop]> select * from core_config_data where path like '%theme_id%'; +-----------+----------+----------+-----------------------+-------+---------------------+ | config_id | scope | scope_id | path | value | updated_at | +-----------+----------+----------+-----------------------+-------+---------------------+ | 70 | default | 0 | design/theme/theme_id | 3 | 2019-11-02 21:57:12 | | 71 | default | 0 | web/theme/theme_id | 4 | 2019-11-02 21:57:12 | | 691 | websites | 6 | design/theme/theme_id | 42 | 2020-04-27 12:11:34 | | 700 | stores | 2 | design/theme/theme_id | 1 | 2020-04-30 16:52:13 | | 712 | stores | 3 | design/theme/theme_id | 43 | 2020-05-01 19:34:07 | | 791 | websites | 8 | design/theme/theme_id | 44 | 2020-05-11 11:18:19 | | 818 | websites | 9 | design/theme/theme_id | 45 | 2020-05-16 11:19:33 | | 1289 | websites | 12 | design/theme/theme_id | 44 | 2020-09-03 09:21:26 | | 1320 | websites | 3 | design/theme/theme_id | 44 | 2020-09-13 14:13:00 | | 1379 | websites | 13 | design/theme/theme_id | 58 | 2020-10-16 09:29:19 | | 1414 | websites | 14 | design/theme/theme_id | 44 | 2020-11-14 17:48:42 | | 1440 | stores | 14 | design/theme/theme_id | 59 | 2020-12-29 19:26:46 | | 1454 | websites | 17 | design/theme/theme_id | 3 | 2021-01-13 16:06:09 | | 1472 | stores | 16 | design/theme/theme_id | 44 | 2021-03-15 16:21:45 | | 1484 | websites | 19 | design/theme/theme_id | 60 | 2021-04-06 16:46:04 | | 1598 | websites | 21 | design/theme/theme_id | 60 | 2021-07-25 20:50:08 | | 1626 | stores | 19 | design/theme/theme_id | 58 | 2021-08-20 15:17:39 | | 1666 | websites | 22 | design/theme/theme_id | 47 | 2021-11-27 20:22:33 | | 1713 | websites | 24 | design/theme/theme_id | 59 | 2022-01-05 17:01:36 | | 1718 | websites | 23 | design/theme/theme_id | 64 | 2022-01-05 17:07:15 | | 2031 | websites | 2 | design/theme/theme_id | 62 | 2023-05-19 17:41:50 | | 2120 | websites | 1 | design/theme/theme_id | 68 | 2023-06-12 19:59:05 | | 2137 | websites | 11 | design/theme/theme_id | 56 | 2023-07-08 12:17:24 | | 2194 | websites | 25 | design/theme/theme_id | 45 | 2023-10-24 16:03:59 | | 2526 | websites | 26 | design/theme/theme_id | 69 | 2024-01-17 13:10:53 | +-----------+----------+----------+-----------------------+-------+---------------------+
so there is no scope id 27 here (and I don't know where magento get's the theme value 40 from). What's remarkable is that there are 25entrys with this path... shouldn't be a problem, but anyway... could any limit cause this problem?
Any ideas how to solve this?
found the reason, but i still can't explain. I've selected a wrong page as homepage for this scope, that page had the ID 40. Looks like a bug in the error message, should be page instat of theme