- Status
- Resolved by author
- Related plugin/theme
- Jetpack
- Topic tags
- Compatibility
Overview of the issue
If you create a Gutenberg Gallery with the Jetpack plugin, you will see this error on the translation:
Warning: Invalid argument supplied for foreach() in …/wp-content/plugins/jetpack/modules/carousel/jetpack-carousel.php on line 738
Workaround
- Make a full backup of your site.
- Open the wp-content/plugins/jetpack/modules/carousel/jetpack-carousel.php file.
- Look for line 786.
- Change:
$attachment_id = absint( $class_id[2] );
- With
$attachment_id = apply_filters( 'wpml_object_id', absint( $class_id[2] ), 'attachment' );