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

Gallery block: Crash when adding images and selecting a gallery item #38217

Closed
fluiddot opened this issue Jan 25, 2022 · 0 comments · Fixed by #38238
Closed

Gallery block: Crash when adding images and selecting a gallery item #38217

fluiddot opened this issue Jan 25, 2022 · 0 comments · Fixed by #38238
Assignees
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended

Comments

@fluiddot
Copy link
Contributor

fluiddot commented Jan 25, 2022

Description

Sentry ticket: https://sentry.io/share/issue/e9deb70195184b10bf08a31afb2bce7b/

Adding images to the Gallery block and selecting an item of the gallery, produces the following error and crashes the app:

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

NOTE: I spotted this issue while testing the beta version of WordPress-iOS 19.1 (19.1.0.0).

Step-by-step reproduction instructions

  1. Add a Gallery block.
  2. Add images to the gallery.
  3. Observe that an error is displayed.

NOTE: I experienced that if the editor is re-opened after getting this error, the images might have been added. However, in this case, the issue can be also reproduced by selecting any of the gallery items.

Expected behaviour

Either adding images or selecting gallery items of the Gallery block shouldn't display errors or make the app crash.

Actual behaviour

Either adding images or selecting gallery items of the Gallery block display an error and make the app crash.

Screenshots or screen recording (optional)

WordPress information

  • WordPress version: N/A
  • Gutenberg version: N/A
  • Are all plugins except Gutenberg deactivated? N/A
  • Are you using a default theme (e.g. Twenty Twenty-One)? N/A

Device information

  • Device: Simulator - iPhone 12 Pro Max
  • Operating system: iOS 15.0
  • WordPress app version: 19.1 (WordPress-iOS 19.1.0.0) and develop branch.
@fluiddot fluiddot added [Type] Bug An existing feature does not function as intended Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Block] Gallery Affects the Gallery Block - used to display groups of images labels Jan 25, 2022
@fluiddot fluiddot self-assigned this Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) [Type] Bug An existing feature does not function as intended
Projects
None yet
1 participant