-
Notifications
You must be signed in to change notification settings - Fork 2k
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
FSE: Switching template on post/page to default template/template generated by the theme failed with error "Updating failed. Invalid parameter(s): template" #59570
Comments
When I tried with the Russell theme, creating a custom template worked from the path:
But not from within the post. Also, when I assign a custom template to a post, it shows the same error. Screen.Capture.on.2021-12-27.at.14-13-27.mp4 |
I'm seeing this on two simple sites, the one mentioned here: and on my test site. I tried enabling FSE on a test site to see if that would fix it. It didn't make a difference. |
Another case in https://wordpress.com/forums/topic/how-to-hide-blog-page-titles-and-featured-images/?view=all, simple site using Russell theme |
https://wordpress.com/forums/topic/template-3/?view=all, simple site on Zoologist |
There's another report of this here: https://wordpress.com/forums/topic/new-post-updating-failed-invalid-parameters-template/?view=all > with the Russell theme. |
+1 for Russel. 4649640-zd-woothemes |
I was able to replicate as well. Set to High priority. |
Tagging @Automattic/cylon and @Automattic/theam here In the case of 4667283-zen, the user commented with the following: The problem is not related to the theme since I tried to change the theme, it didn't change anything. I even tried changing the page template from another account. |
4673315 - zd |
+1 4673459-zd-woothemes |
I think this is resolved by D72778-code. |
I've followed up with the forum threads to ask them to try again. |
I created a new simple site on a free plan for Quadrat Black today. When I make edits to a template, I'm still getting the |
Came here to say I've seen this as well in a few themes. |
Ok I think we got to the bottom of this. Should be fixed, please reopen if it persists! |
During some team testing, I found this error when trying to switch to a new page template on a simple site, and using the |
I am unable to replicate the issue, so it seems intermittent. @jartes are you able to replicate it consistently? If so, can you provide steps to do so? |
Closing this again for now, as no more reports and unable to replicate. |
Reopening issue. Reported in 30878508-hc |
Another report here: 4850193-zd-woothemes I can reproduce the issue when creating a custom template and then trying to switch the template on the page to it. Screen.Recording.2022-05-02.at.6.00.40.pm.movScreen.Recording.2022-05-02.at.6.14.52.pm.mov |
Another instance of this in 5182756-zen - I checked and was able to replicate. Theme: Blank Canvas It looks like I was able to apply the user's Homepage template to a test page, after creating my own test template? |
📌 HOUSEKEEPING
📌 SCRUBBING
📌 FINDINGS/SCREENSHOTS/VIDEO
Farrow, Quadrat White, Blank Canvas with default settings - ❌ Not replicated
Further Testing: Blank Canvas - ✅ Replicated
Screen.Capture.on.2022-05-04.at.11-39-33.movFurther Testing: Quadrat White - ❌ Not ReplicatedLast, I switched to Quadrat White once more:
📌 ACTIONS
|
This is tough to replicate - for any future HE reports, please note the theme used, and provide as many steps you can share that would help us consistently replicate the error on a test site. |
+1 with theme Dorna, 5286915-zd-woothemes |
Support References This comment is automatically generated. Please do not edit it.
|
This feels like the same issue again. 5496035-zen |
Testing on Lynx themeI wasnt able to repro given these instructions from @philnick206
Nor could i repro instructions from @cuemarie here However I am seeing that if I do everything from the page editor I can reproduce the issue until I reload the page. The error is reproduced both on blockbase child themes as well as twenty-twenty-two for simple sites only. However, reloading the page allows us to set and save the newly created template with no error. On Blank Canvas@jeyip Just tested with @cuemarie 's instructions noted above and was able to repro. |
Technical NotesA few things I noted from testing. The endpoint is
The controller couldn't locate our custom template -- it only found default templates. For anyone planning to work on this, be sure to touch base with @david-binda to see if he might have any hunches. |
Thanks for the ping @jeyip ! I'm looking into the issue, feels like WordPress core bug related to a cache on a multisite install (thus affecting WPCOM simple sites only). I'll follow-up here once I have more details to share. |
5581931-zen |
I have deployed a fix for the issue ( D88570-code ). |
Thank you @david-binda ! I tested on my end and the issue seems resolved. Going to close this issue now. |
Quick summary
Cc. @vinnykaur as the first responder
Switching post/page template from "Default theme" to any template created by the theme will render the error
Updating failed. Invalid parameter(s): template
and the post/page can't be updated.Steps to reproduce
Create a page or post.
Click the dropdown block on "Template" section. Choose the one that was created by default. In this example, I'm using "Page without title" template.
... And I can confirm the template "Page without title" is a template created by the theme (Quadrat/Quadrat Black)
See error and failed update attempt
What you expected to happen
For the post/page to be able to switch templates properly
What actually happened
Error
Updating failed. Invalid parameter(s): template
Context
Customer report and both Vinny and I are able to replicate it
Simple, Atomic or both?
Simple
Theme-specific issue?
Blockbase-themes: (I'm testing it using Quadrat theme (Quadrat Black), and Vinny tested it using theme Russell)
Also reported: Zoologist
Browser, operating system and other notes
No response
Reproducibility
Consistent
Severity
No response
Available workarounds?
Yes, difficult to implement
Workaround details
The template switcheroo will work only with customized template (templates that we create from scratch)
The text was updated successfully, but these errors were encountered: