We found that errors have been coming from wp-content/plugins/final-tiles-grid-gallery-lite/lib/gallery-class.php (final-tiles-grid-gallery-lite v3.5.5) in WordPress v6.0.2. The parameter in $file needs to be checked before usage (line 80). Please integrate this check in future releases.
We found that errors have been coming from wp-content/plugins/final-tiles-grid-gallery-lite/lib/gallery-class.php (final-tiles-grid-gallery-lite v3.5.5) in WordPress v6.0.2. The parameter in $file needs to be checked before usage (line 80). Please integrate this check in future releases.
foreach ( $atts as $att ) { $file = get_post_custom( $att->ID ); // Begin parameter check. if (!isset($file[‘_wp_attached_file’])) { continue; } if (!isset($file[‘_wp_attached_file’][0])) { continue; } // End parameter check. $metaData[“att” . $att->ID] = array( ‘alt’ => get_post_meta( $att->ID, ‘_wp_attachment_image_alt’, true ), ‘caption’ => $att->post_excerpt, ‘description’ => $att->post_content, ‘href’ => get_permalink( $att->ID ), ‘url’ => ( $this->gallery->lightboxImageSize == ‘full’ ? $att->guid : wp_get_attachment_image_url( $att->ID, $this->gallery->lightboxImageSize, false ) ), ‘original’ => $att->guid, ‘title’ => $att->post_title, ‘page’ => wp_get_attachment_url( $att->ID ), ‘file’ => $file[‘_wp_attached_file’][0], ); }
https://wordpress.org/support/topic/errror-from-lib-gallery-class-php/