Hi @stephanr-1, thanks for your report.
I think you are referring to this known bug: https://github.com/WordPress/create-block-theme/issues/275
More info and how to fix it manually:
https://github.com/WordPress/gutenberg/issues/44243#issuecomment-1470414943
If that is the problem you described, we will try to fix it soon.
If that’s not the problem you described, it would be helpful that you explain step by step how to reproduce the issue.
Yes it is this problem but it appears elsewhere for example in the generated style.css file :
/*
Theme Name: New_name_OK
Template: Here_is_the_name_of_the_parent_text_domain
*/
I don’t use WordPress in English but in French maybe it comes from there
I don’t use WordPress in English but in French maybe it comes from there
Nope, this is not related to WordPress internationalization but a pre-existing bug in the plugin.
The fix for this problem was just released as part of the 1.8.1 version of the plugin. Please, update your plugin version and try again.
I’m marking this as resolved. Feel free to create a new thread if you find other problems.
Thanks but,
When I use the overwrite “my theme” feature, I have the following errors (php 8.2) :
Warning: Undefined variable $new_slug in \wp-content\plugins\create-block-theme\admin\create-theme\theme-templates.php on line 114
Warning: Undefined variable $new_slug in \wp-content\plugins\create-block-theme\admin\create-theme\theme-templates.php on line 155
…
Fatal error: Uncaught Error: rename(): Argument #1 ($from) must be of type string, WP_Error given
in \wp-content\plugins\create-block-theme\admin\create-theme\theme-media.php on line 147
Hi!
Fatal error: Uncaught Error: rename(): Argument #1 ($from) must be of type string, WP_Error given
in \wp-content\plugins\create-block-theme\admin\create-theme\theme-media.php on line 147
This should be fixed soon when we release this change: https://github.com/WordPress/create-block-theme/pull/310
Warning: Undefined variable $new_slug in \wp-content\plugins\create-block-theme\admin\create-theme\theme-templates.php on line 114
Warning: Undefined variable $new_slug in \wp-content\plugins\create-block-theme\admin\create-theme\theme-templates.php on line 155
This is just a warning the plugin should work, but the warning will be gone when we merge this change: https://github.com/WordPress/create-block-theme/pull/311
Both of these problems happen only for the “Overwrite” option. As a temporal workaround, you can use the options “Export” and “Clone” until these issues are fixed and released.
Thanks @stephanr-1, for flagging this up!