Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating local theme through the backend results in an exception. #1162

Closed
qroft opened this issue Jul 13, 2024 · 1 comment
Closed

Creating local theme through the backend results in an exception. #1162

qroft opened this issue Jul 13, 2024 · 1 comment

Comments

@qroft
Copy link

qroft commented Jul 13, 2024

Winter CMS Build

1.2

PHP Version

Other (please specify below)

Database engine

SQLite

Plugins installed

No response

Issue description

I can not create a theme through the backend as it results in "Cms\Classes\Theme::getConfig(): Return value must be of type array, null returned"
I also noticed that though the directory and its folders are created, the YAML file is totally empty and the composer file is NOT created.

Steps to replicate

  1. Created a new project via Composer
  2. Logged inside through 128.0.0.1/backend
  3. Went to Settings -> Front-Theme and created a new blank theme.
  4. The error appears, i am not able to get back into the themes and for example delete the just created theme.

Workaround

Create the Theme via php ARTISAN in the command line seems to work, as version.yaml and theme.yaml are created.

@LukeTowers
Copy link
Member

Already fixed by d940617, available now on the develop branch or will be available soon in 1.2.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants