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

Cannot upload product image #14105

Closed
3 tasks
shiki opened this issue Oct 4, 2024 · 3 comments
Closed
3 tasks

Cannot upload product image #14105

shiki opened this issue Oct 4, 2024 · 3 comments
Labels
feature: add/edit products Related to adding or editing products. priority: high Affects lots of customers substantially, but not critically. type: bug A confirmed bug.

Comments

@shiki
Copy link
Member

shiki commented Oct 4, 2024

Describe the bug

Uploading images for products does not work. It ends with an error:

<> Mapping Error: keyNotFound(CodingKeys(stringValue: "ID", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "media", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"ID\", intValue: nil) (\"ID\").", underlyingError: nil))

Happens on both the device and the simulator. Tested on 2a8925b.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new product.
  2. Upload an image.

Screenshots

image-upload.mov

Expected behavior

Image upload should be successful. :)

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • This bug happens with a default WordPress theme active, or Storefront.
  • I can reproduce this bug consistently using the steps above.

Mobile Environment
Please include:

  • Device: iPhone 15 Pro Simulator
  • iOS version: 17.0
  • WooCommerce iOS version: 2a8925b

WordPress Environment

``` Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin. ```
@shiki shiki added the type: bug A confirmed bug. label Oct 4, 2024
@dangermattic
Copy link
Collaborator

dangermattic commented Oct 4, 2024

Thanks for reporting! 👍

@shiki shiki added the feature: add/edit products Related to adding or editing products. label Oct 4, 2024
@selanthiraiyan
Copy link
Contributor

Internal - peaMlT-Wu-p2

@JorgeMucientes JorgeMucientes added the priority: high Affects lots of customers substantially, but not critically. label Oct 17, 2024
@JorgeMucientes
Copy link

@selanthiraiyan @itsmeichigo going to close this. After reading the Slack convo: p1728139321219389-slack-C6H8C3G23 it seems this was failing due to a plugin active to disable XML RPC on the site. There's further discussion about a possible endpoint migration for uploading media, but that should tackled in a different GH issue.
If there's anything a missed feel free to reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: add/edit products Related to adding or editing products. priority: high Affects lots of customers substantially, but not critically. type: bug A confirmed bug.
Projects
None yet
Development

No branches or pull requests

4 participants