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

Uploading images in the Site Editor results in "Invalid parameters: post" on Simple and Atomic sites #84818

Closed
filipanoscampos opened this issue Dec 4, 2023 · 46 comments
Labels
[Closed] Fixed Issues explicitly fixed with PRs. Do not use for no longer reproducible issues. Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Block Patterns Pattern content itself, and the functionality that lets you create patterns. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Interaction #] > 20 (Automated) interaction count label for better visibility. Please don't add these manualliy. [Pri] High [Pri] Normal [Product] WordPress.com All features accessible on and related to WordPress.com. Triaged To be used when issues have been triaged. [Type] Bug

Comments

@filipanoscampos
Copy link

filipanoscampos commented Dec 4, 2023

Quick summary

When trying to upload images in the Site Editor, an "invalid parameter(s)" error message appears, and the image fails to upload. This issue appears to be specific to the Site Editor; uploading images still works fine in the post/page editor and the Media Library. I've tested this with various Full Site Editing (FSE) themes, and the error persists regardless of the theme used.

Steps to reproduce

  1. Load the Site Editor (Appearance > Editor)
  2. Add an Image or Media & Text block (or any other block that allows for image uploads)
  3. Try to upload an image file

The issue can also be replicated if you add a Block pattern and try to replace the images included by uploading your own.

What you expected to happen

The image is correctly uploaded and displayed.

What actually happened

This failed and we see the message "Invalid parameters: post".
Markup 2023-12-22 at 15 32 31

patternbug.mp4

Impact

All

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Simple, Atomic

Logs or notes

Reported in 7401215-zd-a8c

@filipanoscampos filipanoscampos added [Type] Bug [Feature] Block Patterns Pattern content itself, and the functionality that lets you create patterns. Needs triage Ticket needs to be triaged [Product] WordPress.com All features accessible on and related to WordPress.com. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. labels Dec 4, 2023
Copy link

github-actions bot commented Dec 4, 2023

Support References

This comment is automatically generated. Please do not edit it.

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Dec 4, 2023
@ha-un
Copy link
Collaborator

ha-un commented Dec 4, 2023

Another report: 7403941-zd-a8c

@upwardmomentum84
Copy link

upwardmomentum84 commented Dec 5, 2023

Another report: 7407751-zd-a8c

Uploading the image to the Media library first and then using the "Select Image" option to select it from the Media library worked for this site.

@filipanoscampos filipanoscampos added [Pri] Normal Triaged To be used when issues have been triaged. and removed [Pri] Low Needs triage Ticket needs to be triaged labels Dec 5, 2023
@filipanoscampos
Copy link
Author

📌 REPRODUCTION RESULTS

– Tested on Simple: Replicated

📌 ACTIONS

– Report kept.

@mikeicode
Copy link

I constantly run into this issue when building sites for customers (BBE). Although it's not a complete blocker, it's pretty annoying and does waste time.

@Joshgrygiel
Copy link

Another: 7424479-zd-a8c

I shared the workaround of uploading to the media library first

@coder-mahfuz
Copy link

Another report: 7425757-zd-a8c

@hacchism
Copy link

hacchism commented Dec 9, 2023

Another report: 7427117-zd-a8c
Theme: Twenty Twenty-Three
Site type: Atomic

@jerren1327
Copy link

Another report: 7395952-zd-a8c
Theme: Twenty Twenty-Three

@dev-sabbir
Copy link

Another: 7427173-zd-a8c
Site type: Atomic
Theme: Creation 2

@aleone89
Copy link

@Joshgrygiel
Copy link

Another here: 440497-zd-a8c
Atomic, Creatio 2 theme

@jerren1327
Copy link

Another report: 7395952-zd-a8c
Atomic, Annalee theme

@jerren1327
Copy link

Another report: 7404960-zd-a8c
Iotix theme

@jp-imagines
Copy link

Another report in 7446079-zd-a8c. (Simple, Annalee theme.)

@github-actions github-actions bot added the [Interaction #] > 10 (Automated) interaction count label for better visibility. Please don't add these manualliy. label Dec 13, 2023
@jp-imagines
Copy link

And another here: 7447303-zd-a8c (Atomic, Tsubaki theme)

@supernovia
Copy link
Contributor

@supernovia
Copy link
Contributor

Adding each separate user from this thread, so we can see the scope:
https://wordpress.com/forums/topic/invalid-parameterpost/?view=all#post-4008488

@supernovia
Copy link
Contributor

@supernovia
Copy link
Contributor

@supernovia
Copy link
Contributor

@supernovia
Copy link
Contributor

@supernovia
Copy link
Contributor

@supernovia
Copy link
Contributor

@ianstewart ianstewart changed the title Simple sites block patterns: Replacing image included on a block pattern by uploading another fails and results in "Invalid parameters: post" Replacing images in the Site Editor results in "Invalid parameters: post" on Simple Dec 13, 2023
@ianstewart
Copy link
Contributor

ianstewart commented Dec 13, 2023

Reproduced with the Ritratto theme. (The Hemingway one.)

  • Activate the theme
  • Click on the big image of Hemingway
  • Click replace
  • Click upload
  • Select an image
  • Get the invalid results notification
  • Then see a missing image like the screenshot below

image

@taipeicoder
Copy link
Contributor

Reproduced this issue with TT4 on an Atomic site. Downgrading Gutenberg to 17.0.3 no longer reproduces the issue, while 17.1.0 still has this problem.

@glendaviesnz
Copy link
Contributor

@glendaviesnz
Copy link
Contributor

Temporary workaround is to open media library and upload image from there

@glendaviesnz
Copy link
Contributor

Possible fix WordPress/gutenberg#57040

@jp-imagines
Copy link

Another report in 7450454-zd-a8c (Atomic, Creatio 2 theme).

Of note: only the Home (Blog Home) template appears to be affected. Trying to upload an image from your device results in the Invalid paramter(s): post error, while trying to upload an image from Pexels or Openverse results in a similar Invalid paramter(s): post_id error. Replicated this on a test site using TT3 as well.

@cuemarie
Copy link

More customer reports here:

  • 7447195-zen (ticket)
  • 7458865-zen (chat)

@hacchism
Copy link

Another report: 7463309-zen
Atomic, Hevor theme

@krutidugade
Copy link

Another report: 7386020-zen

@edequalsawesome
Copy link

Another report: 7474909-zen

Premium plan, Iotix theme

Follow-up: 7474946-zen

@wiesenhauss
Copy link

7488993-zen

@wiesenhauss wiesenhauss changed the title Replacing images in the Site Editor results in "Invalid parameters: post" on Simple Uploading images in the Site Editor results in "Invalid parameters: post" on Simple and Atomic sites Dec 22, 2023
@wiesenhauss
Copy link

Updated issue title and description to expand the scope of the report as both Simple and Atomic sites are affected for all image uploads (not just replacing images).

@Aurorum
Copy link
Contributor

Aurorum commented Dec 23, 2023

7489105-zen

@github-actions github-actions bot added [Interaction #] > 20 (Automated) interaction count label for better visibility. Please don't add these manualliy. and removed [Interaction #] > 10 (Automated) interaction count label for better visibility. Please don't add these manualliy. labels Dec 23, 2023
@jromales
Copy link

7492074-zen - shared the suggested workaround (add image in Media library and open from there)

@OmarFPG
Copy link

OmarFPG commented Dec 26, 2023

7498551-zen | Creator plan, Atomic site, Tsubaki theme. Provided the upload to media workaround.

@TPilgs
Copy link

TPilgs commented Dec 29, 2023

7510944-zen Creator plan, Atomic, provided the upload to media workaround as well, but they also wanted to use Pexels images and can't.

@liviopv
Copy link

liviopv commented Feb 2, 2024

Fixed in Automattic/jetpack#34795 closing

Context: p1706193620037239/1703590834.062169-slack-C02FMH4G8

@liviopv liviopv closed this as completed Feb 2, 2024
@liviopv liviopv added the [Closed] Fixed Issues explicitly fixed with PRs. Do not use for no longer reproducible issues. label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Closed] Fixed Issues explicitly fixed with PRs. Do not use for no longer reproducible issues. Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Block Patterns Pattern content itself, and the functionality that lets you create patterns. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Interaction #] > 20 (Automated) interaction count label for better visibility. Please don't add these manualliy. [Pri] High [Pri] Normal [Product] WordPress.com All features accessible on and related to WordPress.com. Triaged To be used when issues have been triaged. [Type] Bug
Development

No branches or pull requests