Skip to content

[BUG] Array to string conversion on saving category in store view #5621

Description

@Caprico85

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I try to save a category with an image in a specifc store view, I get an Array to string conversion

Expected Behavior

Saving a category works.

Steps To Reproduce

  1. Run a OpenMage demo store using
    SAMPLE_DATA=1 HOST_PORT=94 HOST_NAME=172.17.2.20 ADMIN_HOST_NAME=172.17.2.20 dev/openmage/install.sh
    (can reproduce this on all our existing stores, so it probably doesn't matter how you run your store)
  2. Go to Catalog -> Manage categories
  3. Choose a specific store view. Doesn't matter which one (except "All Store Views")
    Image
  4. Choose a category. Doesn't matter which one.
    Image
  5. Assign an image to the category if there is not already one
    Image
  6. Save the category
  7. See the "Array to string conversion"

Environment

- OpenMage: Tested on 20.17.0 and 20.18.0
- php: Tested on 8.4 and 8.5

Anything else?

If there is no image assigned, saving the category works.

If an image is assigned, the value of the image element is loaded as an array.

Image

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions