typecho/typecho · error · Typecho\Widget\Exception

您选择的风格不存在

Error message

您选择的风格不存在

What it means

Error "您选择的风格不存在" thrown in typecho/typecho.

Source

Thrown at var/Widget/Themes/Edit.php:75

                    $form = new Form();
                    themeConfig($form);
                    $options = $form->getValues();

                    if ($options && !$this->configHandle($options, true)) {
                        $this->insert([
                            'name'  => 'theme:' . $theme,
                            'value' => json_encode($options),
                            'user'  => 0
                        ]);
                    }
                }
            }

            Notice::alloc()->highlight('theme-' . $theme);
            Notice::alloc()->set(_t("外观已经改变"), 'success');
            $this->response->goBack();
        } else {
            throw new Exception(_t('您选择的风格不存在'));
        }
    }

    /**
     * 用自有函数处理配置信息
     *
     * @param array $settings 配置值
     * @param boolean $isInit 是否为初始化
     * @return boolean
     */
    public function configHandle(array $settings, bool $isInit): bool
    {
        if (function_exists('themeConfigHandle')) {
            themeConfigHandle($settings, $isInit);
            return true;
        }

        return false;

View on GitHub (pinned to 56f4c6f339)

When it happens

Trigger: Thrown at var/Widget/Themes/Edit.php:75 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of typecho/typecho@56f4c6f339 (2026-08-21). Data as JSON: /api/errors/61dbb4c80bb06430. Report an issue: GitHub.